-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
80 lines (72 loc) · 1.96 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
defmodule Nurse.MixProject do
use Mix.Project
def project do
[
app: :nurse,
version: "0.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
dialyzer: dialyzer(),
deps: deps(Mix.env())
]
end
# Configuration for the OTP application.
def application do
[
mod: {Nurse.Application, []},
extra_applications: [:runtime_tools, :logger, :ex_unit, :crypto]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps(:test) do
[{:resp_srv, path: "stubs/resp_srv", runtime: false} | deps()]
end
defp deps(_) do
deps()
end
# Project dependencies.
defp deps do
[
{:bypass, "~> 2.1", only: :test},
{:dialyxir, "~> 1.1.0", only: [:dev, :test], runtime: false},
{:elixir_uuid, "~> 1.2"},
{:floki, ">= 0.30.0", only: :test},
{:gettext, "~> 0.11"},
{:httpoison, "~> 1.8"},
{:poison, "~> 5.0"},
{:jason, "~> 1.0"},
{:phoenix, "~> 1.5.12"},
{:phoenix_html, "~> 2.11"},
{:phoenix_live_dashboard, "~> 0.4"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.15.1"},
{:plug_cowboy, "~> 2.0"},
{:stream_data, "~> 0.5.0", only: :test},
{:telemetry_metrics, "~> 0.4"},
{:telemetry_poller, "~> 0.4"},
{:yaml_elixir, "~> 2.8"}
]
end
# Aliases
defp aliases do
[
setup: ["deps.get", "cmd npm install --prefix assets"],
"assets.deploy": [
"cmd --cd assets npm run deploy",
"phx.digest"
],
test_worker: ["cmd MIX_ENV=test mix test test/nurse/worker_test.exs"]
]
end
defp dialyzer do
[
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
end