-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
mix.exs
79 lines (71 loc) · 1.75 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
defmodule LiveSvelte.MixProject do
use Mix.Project
@version "0.14.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: %{
Changelog: @repo_url <> "/blob/master/CHANGELOG.md",
GitHub: @repo_url
},
files:
~w(priv assets/copy assets/js lib mix.exs package.json .formatter.exs LICENSE.md README.md CHANGELOG.md)
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:esbuild, "~> 0.5", only: :dev},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:jason, "~> 1.2"},
{:nodejs, "~> 3.1"},
{:phoenix, ">= 1.7.0"},
{:phoenix_html, ">= 3.3.1"},
{:phoenix_live_view, ">= 0.18.0"}
]
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