-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
91 lines (82 loc) · 2.13 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
defmodule Spellbook.Mixfile do
use Mix.Project
def project do
[
app: :spellbook,
version: "2.0.3",
name: "Spellbook",
source_url: "https://github.com/alexiob/spellbook",
homepage_url: "https://github.com/alexiob/spellbook",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: paths(Mix.env()),
description: description(),
package: package(),
deps: deps(),
docs: [
extras: ["README.md"]
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application do
[extra_applications: applications(Mix.env())]
end
defp deps do
[
{:credo, "~> 1.1", only: [:dev]},
{:dialyze, "~> 0.2", only: [:dev]},
{:dialyxir, "~> 0.5", only: [:dev]},
# {:mr_t, "~> 0.6.0", only: [:test, :dev]}, # instant code-reloader and test runner
{:ex_doc, "~> 0.21", only: [:dev, :docs]},
{:ex_doc_dash, "~> 0.3", only: :docs},
{:inch_ex, "~> 2.0", only: :docs},
{:excoveralls, "~> 0.11", only: :test},
# pure Elixir JSON library
{:jason, "~> 1.1"},
# Erlang YAML parser
{:yamerl, "~> 0.7"},
# Elixir YAML parser
{:yaml_elixir, "~> 2.4"},
# dot.notation
{:dot_notes, "~> 1.0"}
]
end
defp paths(:test) do
["lib", "test/support"]
end
defp paths(_) do
["lib"]
end
defp applications(env) when env in [:dev, :test] do
[:logger]
end
defp applications(_) do
[:logger]
end
defp description do
"""
Provides dynamic hierarchical configurations loading from config files and
environment variables.
"""
end
# https://hex.pm/docs/publish
defp package do
[
name: :spellbook,
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Alessandro Iob <[email protected]>"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/alexiob/spellbook"
}
]
end
end