-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathmix.exs
More file actions
73 lines (67 loc) · 1.89 KB
/
Copy pathmix.exs
File metadata and controls
73 lines (67 loc) · 1.89 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
defmodule Bob.Mixfile do
use Mix.Project
def project() do
[
app: :bob,
version: "0.0.1",
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
listeners: [Phoenix.CodeReloader],
releases: releases(),
aliases: aliases(),
deps: deps()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application() do
[
mod: {Bob.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
defp deps() do
[
{:tidewave, "~> 0.9.0", only: [:dev]},
{:ecto_sql, "~> 3.12"},
{:ex_aws_s3, "~> 2.0"},
{:finch, "~> 0.19"},
{:req, "~> 0.5"},
{:porcelain, "~> 2.0"},
{:postgrex, "~> 0.19"},
{:sentry, "~> 13.5"},
{:sweet_xml, "~> 0.5"},
{:logger_json, "~> 7.0"},
{:observer_cli, "~> 2.0"},
{:phoenix_pubsub, "~> 2.1"},
{:phoenix, "~> 1.7"},
{:phoenix_html, "~> 4.1"},
{:phoenix_live_view, "~> 1.0"},
{:phoenix_live_reload, "~> 1.5", only: :dev},
{:bandit, "~> 1.5"},
{:prom_ex, "~> 1.11"},
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.2", runtime: Mix.env() == :dev},
{:igniter, "~> 0.8.1", only: [:dev, :test], runtime: false},
{:lazy_html, ">= 0.1.0", only: :test}
]
end
defp aliases() do
[
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
"assets.build": ["tailwind bob", "esbuild bob"],
"assets.deploy": ["tailwind bob --minify", "esbuild bob --minify", "phx.digest"]
]
end
defp releases() do
[
bob: [
include_executables_for: [:unix],
reboot_system_after_config: true
]
]
end
end