-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
95 lines (90 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
defmodule Utility.MixProject do
use Mix.Project
def project do
[
app: :utility,
version: String.trim(File.read!("VERSION")),
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
releases: [
utility: [
include_executables_for: [:unix],
include_erts: true,
applications: [runtime_tools: :permanent]
]
]
]
end
def application do
[
mod: {Utility.Application, []},
extra_applications: extra_applications(Mix.env())
]
end
# Specifies which paths to compile per environment.
defp extra_applications(:test), do: [:logger]
defp extra_applications(_), do: [:logger, :runtime_tools, :os_mon]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:ansi_to_html, "~> 0.4"},
{:castore, ">= 0.0.0"},
{:ecto_sql, "~> 3.8"},
{:etso, "~> 1.0"},
{:finch, "~> 0.6"},
{:git_diff, "~> 0.6.3"},
{:guardian, "~> 2.0"},
{:hackney, "~> 1.15"},
{:hex_core, "~> 0.7.0"},
{:jason, "~> 1.1"},
{:makeup, "~> 1.0"},
{:makeup_elixir, "~> 0.14"},
{:oban, "~> 2.3"},
{:phoenix, "~> 1.7.0"},
{:phoenix_ecto, "~> 4.0"},
{:phoenix_html, "~> 3.0"},
{:phoenix_view, "~> 2.0"},
{:phoenix_live_dashboard, "~> 0.6"},
{:phoenix_live_view, "~> 0.18"},
{:bandit, ">= 0.6.8"},
{:postgrex, ">= 0.0.0"},
{:quarto, "~> 1.0"},
{:redix, ">= 0.0.0"},
{:sentry, "~> 8.0"},
{:sweet_xml, "~> 0.7"},
{:telemetry, "~> 1.1", override: true},
{:telemetry_metrics, "~> 0.4"},
{:telemetry_poller, "~> 1.0"},
{:ueberauth, "~> 0.10"},
{:ueberauth_github, tag: "v0.8.2", github: "ueberauth/ueberauth_github"},
{:ueberauth_twitter, "~> 0.3"},
# Test/Dev
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:esbuild, "~> 0.3", runtime: Mix.env() == :dev},
{:floki, ">= 0.0.0", only: :test},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:tailwind, "~> 0.1", runtime: Mix.env() == :dev}
]
end
defp aliases do
[
"assets.deploy": [
"tailwind default --minify",
"esbuild default --minify",
"phx.digest"
],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
outdated: ["hex.outdated", "cmd npm --prefix assets outdated || true"],
setup: ["deps.get", "ecto.setup", "cmd npm install --prefix assets"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
end