-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
98 lines (91 loc) · 2.72 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
97
98
defmodule Veloroute.MixProject do
use Mix.Project
def project do
[
app: :veloroute,
version: "2.0.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [plt_add_apps: [:mix, :ex_unit, :esbuild, :dart_sass]],
releases: [
prod: [
include_executables_for: [:unix],
steps: [:assemble]
]
],
preferred_cli_env: [
test: :test,
dialyzer: :test,
credo: :test,
"velo.assets.prepare": :test
],
aliases: aliases()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Veloroute.Application, []},
extra_applications: [:logger, :runtime_tools, :plug, :os_mon] ++ extra_apps(Mix.env())
]
end
defp aliases() do
[
setup: [
"deps.get",
"deps.compile",
"sass.install",
"cmd --cd assets npm ci --progress=false --no-audit --loglevel=error"
]
]
end
defp extra_apps(:test), do: [:tqdm]
defp extra_apps(:dev), do: [:tqdm]
defp extra_apps(_), do: []
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "data", "test/support"]
defp elixirc_paths(_), do: ["lib", "data"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
is_dev = Mix.env() == :dev
is_test = Mix.env() == :test
[
{:atomex, "~> 0.5.1"},
{:brotli, "~> 0.3"},
{:cachex, "~> 4.0"},
{:dart_sass, "~> 0.5", runtime: is_dev},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:eflame, "~> 1.0", only: [:dev, :test]},
{:erlexec, "~> 2.0",
runtime: is_dev || is_test,
system_env: [{"LDFLAGS", "-static -static-libgcc -static-libstdc++"}]},
{:esbuild, "~> 0.2", runtime: is_dev},
{:file_system, "~> 1.0", runtime: is_dev || is_test},
{:floki, ">= 0.30.0"},
{:hackney, "~> 1.17"},
{:jason, "~> 1.1"},
{:libgraph, "~> 0.7"},
{:memoize, "~> 1.4"},
{:natural_order, "~> 0.3.0"},
{:phoenix_bakery, "~> 0.1.2", runtime: false},
{:phoenix_live_view, "~> 1.0.0-rc.7"},
{:phoenix, "~> 1.7.11"},
{:plug_cowboy, "~> 2.3"},
{:polyline, "~> 1.3"},
{:reverse_proxy_plug, "~> 3.0"},
{:saxy, "~> 1.0"},
{:stream_split, "~> 0.1.0"},
{:sweet_xml, "~> 0.7"},
{:temp, "~> 0.4"},
{:tesla, "~> 1.13.0"},
{:tqdm, runtime: is_dev, git: "https://github.com/breunigs/tqdm_elixir", branch: "updates"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false}
]
end
end