-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
64 lines (59 loc) · 1.75 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
defmodule Website.MixProject do
use Mix.Project
def project do
[
app: :website,
version: "0.0.0",
elixir: "~> 1.16",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
def application do
[
mod: {Website.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:phoenix, "~> 1.7.10"},
{:phoenix_html, "~> 4.0"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 1.0.0"},
{:floki, "~> 0.37.0"},
{:phoenix_live_dashboard, "~> 0.8.2"},
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.2.0", runtime: Mix.env() == :dev},
{:telemetry_metrics, "~> 1.0"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.26"},
{:jason, "~> 1.2"},
{:dns_cluster, "~> 0.1.1"},
{:bandit, ">= 0.0.0"},
{:mdex, "~> 0.3.0"},
{:yaml_elixir, "~> 2.11.0"},
{:tailwind_formatter, "~> 0.4.0", only: [:dev, :test], runtime: false},
{:nimble_publisher, "~> 1.1.0"},
{:phoenix_seo, "~> 0.1.9"},
{:atomex, "0.5.1"},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
setup: ["deps.get", "assets.setup", "assets.build"],
"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
"assets.build": ["tailwind default", "esbuild default"],
"assets.deploy": [
"tailwind default --minify",
"esbuild default --minify --loader:.ttf=file",
"phx.digest"
]
]
end
end