-
Notifications
You must be signed in to change notification settings - Fork 32
/
mix.exs
62 lines (57 loc) · 1.63 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
defmodule Hello.MixProject do
use Mix.Project
def project do
[
app: :hello,
version: "0.1.0",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
build_path: "/mix/_build",
deps_path: "/mix/deps",
aliases: aliases(),
deps: deps(),
test_coverage: [tool: ExCoveralls]
]
end
def application do
[
mod: {Hello.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:bandit, "1.5.7"},
{:credo, "1.7.7", only: [:dev, :test], runtime: false},
{:dns_cluster, "~> 0.1.3"},
{:ecto_sql, "3.12.0"},
{:excoveralls, "0.18.3", only: [:dev, :test]},
{:finch, "0.19.0"},
{:floki, "0.36.2", only: :test},
{:gettext, "0.26.1"},
{:heroicons, "0.5.6"},
{:jason, "1.4.4"},
{:phoenix, "1.7.14"},
{:phoenix_ecto, "4.6.2"},
{:phoenix_html, "4.1.1"},
{:phoenix_live_dashboard, "0.8.4"},
{:phoenix_live_reload, "1.5.3", only: :dev},
{:phoenix_live_view, "0.20.17"},
{:postgrex, "0.19.1"},
{:swoosh, "1.17.1"},
{:telemetry_metrics, "1.0.0"},
{:telemetry_poller, "1.1.0"}
]
end
defp aliases do
[
setup: ["deps.get", "ecto.setup", "cmd npm install --prefix assets"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
end