-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
51 lines (45 loc) · 1.19 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
defmodule UnPage.MixProject do
use Mix.Project
@env Mix.env()
def project do
[
app: :unpage,
version: "0.1.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(@env),
start_permanent: @env == :prod,
aliases: aliases(),
deps: deps()
]
end
def application do
[
mod: {UnPage.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:phoenix, github: "phoenixframework/phoenix", override: true},
{:phoenix_html, "~> 3.0"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, github: "phoenixframework/phoenix_live_view"},
{:floki, ">= 0.30.0", only: :test},
{:esbuild, "~> 0.4", runtime: Mix.env() == :dev},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.18"},
{:jason, "~> 1.2"},
{:plug_cowboy, "~> 2.5"},
{:html_sanitize_ex, "~> 1.4"}
]
end
defp aliases do
[
setup: ["deps.get"],
"assets.deploy": ["esbuild default --minify", "phx.digest"]
]
end
end