-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
52 lines (48 loc) · 1.11 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
defmodule HeroesGame.MixProject do
use Mix.Project
def project do
[
apps_path: "apps",
apps: [:heroes_server, :heroes_web],
version: "0.1.0",
aliases: aliases(),
deps: deps(),
dialyzer: [
plt_local_path: "priv/plts",
flags: dialyzer_flags()
],
releases: [
web: [
applications: [
runtime_tools: :load,
heroes_cluster: :permanent,
heroes_web: :permanent
],
version: {:from_app, :heroes_web},
include_executables_for: [:unix]
]
]
]
end
defp aliases do
[
"assets.deploy": ["esbuild default --minify", "phx.digest"],
quality: ["format", "credo --strict", "dialyzer"]
]
end
defp deps do
[
{:credo, "~> 1.4", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:heroes_cluster, path: "apps/heroes_cluster", only: :prod, runtime: false}
]
end
defp dialyzer_flags do
[
:unmatched_returns,
:error_handling,
:race_conditions,
:underspecs
]
end
end