zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

mix.exs (1574B)


      1 defmodule Jason.Mixfile do
      2   use Mix.Project
      3 
      4   @source_url "https://github.com/michalmuskala/jason"
      5   @version "1.4.0"
      6 
      7   def project() do
      8     [
      9       app: :jason,
     10       version: @version,
     11       elixir: "~> 1.4",
     12       start_permanent: Mix.env() == :prod,
     13       consolidate_protocols: Mix.env() != :test,
     14       deps: deps(),
     15       preferred_cli_env: [docs: :docs],
     16       dialyzer: dialyzer(),
     17       description: description(),
     18       package: package(),
     19       docs: docs()
     20     ]
     21   end
     22 
     23   def application() do
     24     [
     25       extra_applications: []
     26     ]
     27   end
     28 
     29   defp deps() do
     30     [
     31       {:decimal, "~> 1.0 or ~> 2.0", optional: true},
     32       {:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
     33       {:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
     34     ] ++ maybe_stream_data()
     35   end
     36 
     37   defp maybe_stream_data() do
     38     if Version.match?(System.version(), "~> 1.5") do
     39       [{:stream_data, "~> 0.4", only: :test}]
     40     else
     41       []
     42     end
     43   end
     44 
     45   defp dialyzer() do
     46     [
     47       ignore_warnings: "dialyzer.ignore",
     48       plt_add_apps: [:decimal]
     49     ]
     50   end
     51 
     52   defp description() do
     53     """
     54     A blazing fast JSON parser and generator in pure Elixir.
     55     """
     56   end
     57 
     58   defp package() do
     59     [
     60       maintainers: ["Michał Muskała"],
     61       licenses: ["Apache-2.0"],
     62       links: %{"GitHub" => @source_url}
     63     ]
     64   end
     65 
     66   defp docs() do
     67     [
     68       main: "readme",
     69       name: "Jason",
     70       source_ref: "v#{@version}",
     71       canonical: "http://hexdocs.pm/jason",
     72       source_url: @source_url,
     73       extras: ["README.md", "CHANGELOG.md", "LICENSE"]
     74     ]
     75   end
     76 end