-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmix.exs
More file actions
88 lines (82 loc) · 2.33 KB
/
mix.exs
File metadata and controls
88 lines (82 loc) · 2.33 KB
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
defmodule PR.MixProject do
use Mix.Project
def project do
[
app: :pr,
version: "0.1.0",
elixir: "~> 1.18.0",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
releases: releases(),
listeners: [Phoenix.CodeReloader]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {PR.Application, []},
extra_applications: [:logger, :runtime_tools, :sentry]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ecto_sql, "~> 3.10"},
{:postgrex, ">= 0.0.0"},
{:phoenix_pubsub, "~> 2.0"},
{:jason, "~> 1.0"},
{:oauth2, "~> 2.0"},
{:certifi, "~> 2.2"},
{:telemetry_poller, "~> 0.4"},
{:telemetry_metrics, "~> 0.4"},
{:phoenix, "~> 1.8.0"},
{:phoenix_live_view, "~> 1.0"},
{:phoenix_ecto, "~> 4.1"},
{:phoenix_html, "~> 3.0"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:gettext, "~> 0.11"},
{:plug_cowboy, "~> 2.0"},
{:ueberauth_google, "~> 0.8"},
{:ex_machina, "~> 2.7", only: :test},
{:timex, "~> 3.5"},
{:logger_json, "~> 5.1"},
{:esbuild, "~> 0.2", runtime: Mix.env() == :dev},
{:dart_sass, "~> 0.4", runtime: Mix.env() == :dev},
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
{:mock, "~> 0.3.6", only: :test},
{:heroicons, "~> 0.5"},
{:libcluster, "~> 3.3"},
{:sentry, "~> 10.1"},
{:quantum, "~> 3.0"},
{:highlander, "~> 0.2"}
]
end
defp releases() do
[
pr: [
version: "0.0.1",
include_executables_for: [:unix],
applications: [pr: :permanent]
]
]
end
defp aliases do
[
"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.deploy": [
"esbuild default --minify",
# No dart sass here cos its done in the docker file
# as the dart-sass lib didn't run in fly's builder env
"phx.digest"
]
]
end
end