-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmix.exs
86 lines (75 loc) · 1.88 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
defmodule Miss.MixProject do
use Mix.Project
@app :miss
@name "Miss Elixir"
@repo "https://github.com/prodis/miss-elixir"
@version "0.1.5"
def project do
[
app: @app,
name: @name,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
description: description(),
docs: docs(),
package: package(),
preferred_cli_env: preferred_cli_env(),
test_coverage: [tool: ExCoveralls]
]
end
def application, do: []
defp deps do
[
# Development
{:credo, "~> 1.6", only: :dev, runtime: false},
{:dialyxir, "~> 1.1.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.28", only: :dev, runtime: false},
# Test
{:decimal, "~> 2.0", only: :test},
{:excoveralls, "~> 0.14", only: :test}
]
end
defp description do
"""
Some functions that I miss in Elixir standard library (and maybe you too).
Miss Elixir brings in a non-intrusive way some extra functions that, for different reasons,
are not part of the Elixir standard library.
"""
end
defp dialyzer do
[
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
defp docs do
[
main: "readme",
extras: ~w(README.md CHANGELOG.md),
formatters: ~w(html),
logo: "assets/miss-elixir-logo.png",
source_ref: @version,
source_url: @repo,
canonical: "http://hexdocs.pm/miss"
]
end
defp package do
[
files: ~w(lib mix.exs README.md CHANGELOG.md LICENSE),
maintainers: ["Fernando Hamasaki de Amorim"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => @repo}
]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.travis": :test
]
end
end