-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
103 lines (92 loc) · 2.38 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
92
93
94
95
96
97
98
99
100
101
102
103
defmodule Kungfuig.MixProject do
use Mix.Project
@app :kungfuig
@name "Kungfuig"
@version "1.0.0"
@owner "kantox"
@maintainers ["Aleksei Matiushkin"]
@private_hex ""
@licenses ["MIT"]
def project do
[
app: @app,
name: @name,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
xref: [exclude: []],
description: description(),
package: package(),
deps: deps(),
aliases: aliases(),
xref: [exclude: []],
docs: docs(),
releases: [],
dialyzer: [
plt_file: {:no_warn, ".dialyzer/dialyzer.plt"},
ignore_warnings: ".dialyzer/ignore.exs"
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:nimble_options, "~> 0.3 or ~> 1.0"},
# dev / test
{:credo, "~> 1.0", only: [:dev, :ci]},
{:dialyxir, "~> 1.0", only: [:dev, :test, :ci], runtime: false},
{:ex_doc, "~> 0.11", only: :dev}
]
end
defp aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
"quality.ci": [
"format --check-formatted",
"credo --strict",
"dialyzer"
]
]
end
defp description do
"""
Live config supporting many different backends.
**Kungfuig** (_pronounced:_ [ˌkʌŋˈfig]) provides a drastically easy way to plug
live configuration into everything.
It provides backends for `env` and `system` and supports custom backends.
"""
end
defp package do
[
name: @app,
files: ~w|stuff lib mix.exs README.md|,
maintainers: @maintainers,
licenses: @licenses,
links: %{
"GitHub" => "https://github.com/#{@owner}/#{@app}",
"Docs" => "https://#{@private_hex}hexdocs.pm/#{@app}"
}
]
end
defp docs do
[
main: "Kungfuig",
source_ref: "v#{@version}",
canonical: "http://#{@private_hex}hexdocs.pm/#{@app}",
logo: "stuff/#{@app}-48x48.png",
source_url: "https://github.com/#{@owner}/#{@app}",
assets: "stuff/images",
extras: ["README.md"],
groups_for_modules: []
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:ci), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end