forked from talentdeficit/jsx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
43 lines (39 loc) · 984 Bytes
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
defmodule JSX.Mixfile do
use Mix.Project
def project do
[
app: :jsx,
version: "2.8.2",
description: "an erlang application for consuming, producing and manipulating json. inspired by yajl",
deps: deps(Mix.env),
package: package(),
language: :erlang,
erlc_options: opts(Mix.env)
]
end
defp opts(:dev), do: [d: :TEST] ++ opts(:prod)
defp opts(_) do
force_maps = case System.get_env("JSX_FORCE_MAPS") do
nil -> []
_ -> [d: :maps_always]
end
[:debug_info, d: :maps_support] ++ force_maps
end
defp deps(_), do: [{:mixunit, "~> 0.9.2", only: :dev}]
defp package do
[
files: [
"CHANGES.md",
"LICENSE",
"mix.exs",
"rebar.config",
"rebar.config.script",
"README.md",
"src"
],
contributors: ["alisdair sullivan"],
links: %{"github" => "https://github.com/talentdeficit/jsx"},
licenses: ["MIT"]
]
end
end