-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathmix.exs
48 lines (45 loc) · 1.28 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
defmodule TaiMonorepo.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
version: "0.0.75",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
test_coverage: [tool: ExCoveralls],
dialyzer: [
plt_add_apps: [:echo_boy, :ex_unit, :mix],
ignore_warnings: ".dialyzer_ignore.exs",
paths: [
"_build/dev/lib/tai/ebin",
"_build/dev/lib/examples/ebin"
]
],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
defp deps do
[
{:excoveralls, "~> 0.8", only: :test},
{:ex_unit_notifier, "~> 1.0", only: :test},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
{:licensir, "~> 0.6", only: :dev, runtime: false}
]
end
defp aliases do
[
setup: ["deps.get", "tai.gen.migration", "ecto.setup"],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"],
"test.watch": ["ecto.create --quiet", "ecto.migrate", "test.watch"]
]
end
end