-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
61 lines (54 loc) · 1.62 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
defmodule DiscUnion.Mixfile do
use Mix.Project
def project do
[
app: :disc_union,
version: "0.3.0",
elixir: "~> 1.2",
description: "Discriminated unions for Elixir - for building algebraic data types",
package: package(),
compilers: compilers(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.html": :test,
"coveralls.detail": :test, "coveralls.post": :test],
consolidate_protocols: Mix.env != :test,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env),
docs: docs()
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[applications: [:logger]]
end
defp deps do
[
{:excoveralls, "~> 0.4", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:ex_doc, "~> 0.21", only: [:dev], runtime: false},
{:earmark, "~> 1.4", only: [:dev], runtime: false},
{:credo, "~> 1.1", only: [:dev], runtime: false}
]
end
defp compilers do
compilers(Mix.env)
end
defp compilers(_), do: Mix.compilers
defp package do
[ maintainers: ["X4lldux"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/x4lldux/disc_union"}, ]
end
defp elixirc_paths(:test), do: ["lib", "test"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[extras: [
"README.md": [title: "README"],
"CHANGELOG.md": [title: "Changelog"]
]]
end
end