-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
70 lines (63 loc) · 1.5 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
defmodule Abbr.MixProject do
use Mix.Project
def project do
[
app: :abbr,
version: "0.1.0",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
dialyzer: dialyzer(Mix.env())
]
end
def application do
[
mod: {Abbr.Application, []},
extra_applications: [
:logger,
:runtime_tools,
:logger_file_backend
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp dialyzer(:test) do
[
plt_add_apps: [:ex_unit, :mix],
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
defp dialyzer(_) do
[
plt_add_apps: [:mix]
]
end
defp deps do
[
{:confex, "~> 3.5"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:gettext, "~> 0.23"},
{:jason, "~> 1.4"},
{:libcluster, "~> 3.3"},
{:local_cluster, "~> 1.2", only: [:dev, :test]},
{:logger_file_backend, "~> 0.0.13"},
{:memento, github: "sheharyarn/memento"},
{:phoenix, "~> 1.7"},
{:phoenix_pubsub, "~> 2.1"},
{:phoenix_view, "~> 2.0"},
{:plug_cowboy, "~> 2.6"},
{:schism, "~> 1.0", only: [:dev, :test]}
]
end
defp aliases do
[
test: ["test --no-start"]
]
end
end