forked from pikdum/thistle_tea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
75 lines (71 loc) · 2.15 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
defmodule ThistleTea.MixProject do
use Mix.Project
def project do
[
app: :thistle_tea,
version: "0.1.0",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
listeners: [Phoenix.CodeReloader]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {ThistleTea.Application, []},
extra_applications: [:logger, :crypto, :runtime_tools]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:binary, "~> 0.0.5"},
{:ecto_sqlite3, "~> 0.17"},
{:memento, "~> 0.4.0"},
{:thousand_island, "~> 1.0"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:telemetry, "~> 1.0"},
{:bitmap, "~> 1.0"},
{:rustler, "~> 0.35.0"},
{:phoenix, "~> 1.7.14"},
{:phoenix_html, "~> 4.1"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 1.0.0-rc.7", override: true},
{:phoenix_live_dashboard, "~> 0.8.3"},
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.2", runtime: Mix.env() == :dev},
{:heroicons,
github: "tailwindlabs/heroicons",
tag: "v2.1.5",
sparse: "optimized",
app: false,
compile: false,
depth: 1},
{:telemetry_metrics, "~> 1.0"},
{:telemetry_poller, "~> 1.0"},
{:jason, "~> 1.2"},
{:bandit, "~> 1.5"},
{:tailwind_formatter,
github: "100phlecs/tailwind_formatter",
ref: "3896f735be23ea4d6c15f8e9e39b65430d972925",
only: [:dev, :test],
runtime: false}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
defp aliases do
[
setup: ["deps.get", "assets.setup", "assets.build"],
"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
"assets.build": ["tailwind thistle_tea", "esbuild thistle_tea"],
"assets.deploy": [
"tailwind thistle_tea --minify",
"esbuild thistle_tea --minify",
"phx.digest"
]
]
end
end