-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
88 lines (80 loc) · 1.95 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
defmodule Mavis.MixProject do
use Mix.Project
@source_url "https://github.com/ityonemo/mavis"
@version "0.0.6"
def project do
[
app: :mavis,
version: @version,
elixir: "~> 1.10",
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: preferred_cli_env(),
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
docs: docs()
]
end
def application, do: []
defp elixirc_paths(:test), do: ["lib", "test/_support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
description: "Type system tools for elixir",
licenses: ["MIT"],
files: ~w(lib .formatter.exs mix.exs README* LICENSE* CHANGELOG*),
links: %{
"Changelog" => "#{@source_url}/blob/master/CHANGELOG.md",
"GitHub" => @source_url
}
]
end
defp deps do
[
{:credo, "~> 1.2", only: [:test, :dev], runtime: false},
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
{:excoveralls, "~> 0.11.1", only: :test},
{:stream_data, "~> 0.5.0", only: :test}
]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
end
defp docs do
[
main: "Type",
source_ref: @version,
source_url: @source_url,
groups_for_modules: [
Types: [
Type.AsBoolean,
Type.Bitstring,
Type.Function,
Type.Function.Var,
Type.List,
Type.Map,
Type.Opaque,
Type.Tuple,
Type.Union
]
],
groups_for_functions: [
Guards: &(&1[:guards]),
"Type Macros": &(&1[:type])
],
extras: [
"CHANGELOG.md",
"info/typesystem.md",
"info/string_deviations.md",
"info/function_deviations.md",
"info/tuple_deviations.md"
]
]
end
end