-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
87 lines (78 loc) · 1.93 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
defmodule SimpleEnum.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/ImNotAVirus/simple_enum"
def project do
[
app: :simple_enum,
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :test,
deps: deps(),
package: package(),
description: description(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
docs: :docs,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.26", only: [:dev, :docs], runtime: false},
{:excoveralls, "~> 0.14", only: :test}
]
end
defp description do
"""
A simple library that implements Enumerations in Elixir
"""
end
defp package do
[
maintainers: ["DarkyZ aka NotAVirus"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
files: ~w(lib CHANGELOG.md LICENSE.md mix.exs README.md .formatter.exs)
]
end
defp docs() do
[
main: "overview",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/simple_enum",
source_url: @source_url,
extras: extras(),
groups_for_extras: groups_for_extras()
]
end
defp extras do
[
"guides/integer_based_enum.md",
"guides/string_based_enum.md",
"guides/enum_types.md",
"guides/introspection.md",
"guides/fast_vs_slow_access.md",
"CHANGELOG.md",
"LICENSE.md",
"README.md": [filename: "overview", title: "Overview"]
]
end
defp groups_for_extras do
[
Guides: ~r/guides\/[^\/]+\.md/,
Others: ~r/(CHANGELOG|LICENSE)\.md/
]
end
end