forked from MilosMosovsky/terminator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
96 lines (87 loc) · 2.3 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
defmodule Terminator.MixProject do
use Mix.Project
@version "0.5.2"
def project do
[
app: :terminator,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
aliases: aliases(),
test_coverage: [tool: ExCoveralls],
package: package(),
docs: docs(),
dialyzer: dialyzer()
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Terminator.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto, "~> 3.0"},
{:ecto_sql, "~> 3.0"},
{:postgrex, ">= 0.14.1"},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:optimus, "~> 0.1.0", only: :dev},
{:mix_test_watch, "~> 0.8", only: :dev, runtime: false},
{:ex_machina, "~> 2.2", only: :test},
{:excoveralls, "~> 0.10", only: :test},
{:mock, "~> 0.3.0", only: :test},
{:inch_ex, only: :docs},
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev, :test], runtime: false}
]
end
defp description() do
"Elixir ACL library for managing user abilities and permissions with support of ecto and compatibility with absinthe"
end
defp package() do
[
files: ~w(lib priv/repo/migrations .formatter.exs mix.exs README*),
licenses: ["GPL"],
links: %{"GitHub" => "https://github.com/MilosMosovsky/terminator"}
]
end
defp docs() do
[
extras: ["README.md"],
main: "readme",
source_url: "https://github.com/MilosMosovsky/terminator",
groups_for_modules: [
Models: [
Terminator.Performer,
Terminator.Role,
Terminator.Ability
]
]
]
end
defp dialyzer() do
[
plt_add_deps: :transitive,
plt_add_apps: [:ex_unit, :mix],
flags: [
:error_handling,
:race_conditions,
:underspecs,
:unmatched_returns
]
]
end
defp aliases do
[
test: ["ecto.create", "ecto.migrate", "test"]
]
end
end