-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
47 lines (43 loc) · 1.09 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
defmodule Office.MixProject do
use Mix.Project
def project do
[
app: :office,
version: "0.1.0",
elixir: "~> 1.12",
compilers: Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
def application do
[
extra_applications: [:logger, :runtime_tools],
mod: {Office.Application, []}
]
end
defp deps do
[
{:ecto, "~> 3.9"},
{:ecto_sql, "~> 3.9"},
{:esbuild, "~> 0.6.0"},
{:jason, "~> 1.4"},
{:phoenix, "~> 1.6"},
{:phoenix_html, "~> 3.2"},
{:phoenix_live_reload, "~> 1.4", only: :dev},
{:phoenix_live_view, "~> 0.18.11"},
{:plug_cowboy, "~> 2.6"},
{:postgrex, "~> 0.16.5"}
]
end
defp aliases do
[
setup: ["deps.get", "ecto.setup"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
"assets.deploy": ["esbuild default --minify", "phx.digest"]
]
end
end