-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
100 lines (94 loc) · 2.8 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
99
100
defmodule Ex338.Mixfile do
use Mix.Project
def project do
[
app: :ex338,
version: "0.0.1",
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
xref: [exclude: [:mnesia]]
]
end
# Configuration for the OTP application.
# Type `mix help compile.app` for more information.
def application do
[
mod: {Ex338.Application, []},
extra_applications: [
:logger,
:runtime_tools,
:os_mon
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:bcrypt_elixir, "~> 3.0"},
{:canary, "~> 1.1.0"},
{:cowboy, "~> 2.10"},
{:csv, "~> 3.2.1"},
{:ecto, "~> 3.11.0"},
{:ecto_enum, "~> 1.4"},
{:ecto_sql, "~> 3.11.0"},
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.2", runtime: Mix.env() == :dev},
{:heroicons,
github: "tailwindlabs/heroicons",
tag: "v2.1.1",
sparse: "optimized",
app: false,
compile: false,
depth: 1},
{:ex_machina, "~> 2.7.0", only: :test},
{:exgravatar, "~> 2.0.0"},
{:floki, "~> 0.36.0", only: :test},
{:gen_smtp, "~> 1.0"},
{:gettext, "~> 0.13"},
{:honeybadger, "~> 0.12"},
{:jason, "~> 1.0"},
{:kaffy, "~> 0.10.2"},
{:nimble_publisher, "~> 1.0"},
{:number, "~> 1.0.0"},
{:oban, "~> 2.13"},
{:phoenix, "~> 1.7.11"},
{:phoenix_live_dashboard, "~> 0.8.3"},
{:phoenix_ecto, "~> 4.6.2"},
{:phoenix_html, "~> 3.2"},
{:phoenix_live_reload, "~> 1.4", only: :dev},
{:phoenix_pubsub, "~> 2.0"},
{:phoenix_pubsub_redis, "~> 3.0.0"},
{:phoenix_live_view, "~> 0.20.7"},
{:phoenix_view, "~> 2.0"},
{:plug_cowboy, "~> 2.7"},
{:postgrex, "~> 0.17.4"},
{:styler, "~> 0.11", only: [:dev, :test], runtime: false},
{:swoosh, "~> 1.15"},
{:telemetry_poller, "~> 0.4"},
{:telemetry_metrics, "~> 1.0"},
{:tzdata, "~> 1.1"},
{:vega_lite, "~> 0.1"}
]
end
defp aliases do
[
setup: ["deps.get", "ecto.setup", "assets.setup", "assets.build"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"],
"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
"assets.build": ["tailwind ex338", "esbuild ex338"],
"assets.deploy": [
"tailwind ex338 --minify",
"esbuild ex338 --minify",
"phx.digest"
]
]
end
end