-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
63 lines (56 loc) · 1.39 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
defmodule JsonConfix.MixProject do
use Mix.Project
@project_url "https://github.com/quri/json_confix"
@version "0.3.0"
def project do
[
app: :json_confix,
name: "JsonConfix",
version: @version,
elixir: "~> 1.6 or ~> 1.9",
package: package(),
description: description(),
start_permanent: Enum.member?([:prod, :int], Mix.env()),
docs: docs(),
deps: deps()
]
end
defp package do
[
maintainers: ["Trax Retail"],
licenses: ["Beerware"],
links: %{
"GitHub" => @project_url,
"ConfigTuples" => "https://github.com/rockneurotiko/config_tuples"
},
files: ~w(.formatter.exs mix.exs README.md CHANGELOG.md lib)
]
end
defp description do
"""
JsonConfix is a Elixir config provider for Distillery that replaces config tuples (e.g `{:json, value}`) \
to the correspondent value read from a JSON file.
"""
end
def docs do
[
main: "readme",
extras: ["README.md"],
source_url: "https://github.com/quri/json_confix"
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:distillery, "~> 2.0", runtime: false},
{:jason, "~> 1.0"},
{:ex_doc, "~> 0.21", only: :dev}
]
end
end