-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
102 lines (96 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
96
97
98
99
100
101
102
defmodule ComponentsGuide.MixProject do
use Mix.Project
@version "0.1.3"
def project do
[
app: :components_guide,
version: @version,
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {ComponentsGuide.Application, []},
extra_applications: [:logger, :runtime_tools, :xmerl]
]
end
# Specifies which paths to compile per environment.
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
[
{:phoenix, "~> 1.7.0"},
{:phoenix_live_view, "~> 0.18.3"},
{:phoenix_live_dashboard, "~> 0.7.2"},
{:phoenix_pubsub, "~> 2.0"},
{:phoenix_html, "~> 3.2"},
{:phoenix_view, "~> 2.0"},
{:phoenix_ecto, "~> 4.4"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:heroicons, "~> 0.2.2"},
{:esbuild, "~> 0.3", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.1", runtime: Mix.env() == :dev},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.11"},
{:unicode_guards, "~> 1.0"},
{:castore, "~> 0.1.0"},
{:cachex, "~> 3.1"},
{:ecto, "~> 3.9.5"},
{:jason, "~> 1.0"},
{:mojito, "~> 0.6.1"},
{:mint, "~> 1.0"},
{:floki, "~> 0.34.1"},
{:html5ever, "~> 0.14.0"},
{:plug_cowboy, "~> 2.0"},
{:earmark, "~> 1.4.15"},
{:paredown, "~> 0.1.0"},
{:ex_image_info, "~> 0.2.4"},
{:rustler, "~> 0.29.0"},
{:rustler_precompiled, "~> 0.6"},
{:exqlite, "~> 0.13.3"},
{:redix, "~> 1.1"},
{:benchee, "~> 1.0", only: :dev},
{:orb, "~> 0.0.33"},
{:silver_orb, "~> 0.0.6"},
# {:orb, path: "../../Collected/orb", override: true},
# {:silver_orb, path: "../../Collected/silver_orb", override: true},
# {:wasmex, "~> 0.8.3"},
{:orb_wasmtime, "~> 0.1.10"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
setup: ["deps.get", "cmd npm --prefix assets ci"],
"asdf.rust": [],
"assets.deploy": [
"template_assets",
"tailwind.install",
"tailwind default --minify",
"esbuild default --minify",
"phx.digest"
],
production_build: [
# "cmd rustup install stable",
# "cmd rustup default stable",
"setup",
"assets.deploy",
"compile"
]
]
end
end