forked from woutdp/live_svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
75 lines (67 loc) · 1.66 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 LiveSvelte.MixProject do
use Mix.Project
@version "0.5.1"
@repo_url "https://github.com/woutdp/live_svelte"
def project do
[
app: :live_svelte,
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
# Hex
description: "E2E reactivity for Svelte and LiveView",
package: package(),
# Docs
name: "LiveSvelte",
docs: [
name: "LiveSvelte",
source_ref: "v#{@version}",
source_url: @repo_url,
homepage_url: @repo_url,
main: "readme",
extras: ["README.md"],
links: %{
"GitHub" => @repo_url,
"Sponsor" => "https://github.com/sponsors/woutdp"
}
]
]
end
defp package() do
[
maintainers: ["Wout De Puysseleir"],
licenses: ["MIT"],
links: %{"GitHub" => @repo_url},
files: ~w(priv assets lib LICENSE.md mix.exs package.json README.md .formatter.exs)
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:esbuild, "~> 0.5", runtime: Mix.env() == :dev},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:jason, "~> 1.2"},
{:nodejs, "~> 2.0"},
{:phoenix, "~> 1.7"},
{:phoenix_html, "~> 3.3"},
{:phoenix_live_view, "~> 0.18.3"}
]
end
defp aliases do
[
"assets.build": ["esbuild module", "esbuild cdn", "esbuild cdn_min", "esbuild main"],
"assets.watch": [
"esbuild module --watch",
"esbuild cdn --watch",
"esbuild cdn_min --watch",
"esbuild main --watch"
]
]
end
end