-
Notifications
You must be signed in to change notification settings - Fork 17
/
mix.exs
101 lines (92 loc) · 2.6 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
defmodule LiveToast.MixProject do
@moduledoc false
use Mix.Project
@version "0.6.4"
def project do
[
app: :live_toast,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
package: package(),
deps: deps(),
docs: docs(),
name: "Live Toast",
source_url: "https://github.com/srcrip/live_toast",
homepage_url: "https://github.com/srcrip/live_toast",
description: """
Drop-in replacement for the Phoenix flash system, supporting flashes and toasts.
"""
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:phoenix, ">= 1.7.0"},
{:phoenix_live_view, ">= 0.20.0"},
{:ecto, ">= 3.11.0"},
{:esbuild, "~> 0.2", only: :dev},
{:bandit, "~> 1.1", only: :dev},
{:ex_check, "~> 0.14.0", only: [:dev], runtime: false},
{:credo, ">= 0.0.0", only: [:dev], runtime: false},
{:dialyxir, ">= 0.0.0", only: [:dev], runtime: false},
{:doctor, ">= 0.0.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.32.2", only: [:dev], runtime: false},
{:gettext, "~> 0.24.0"},
{:mix_audit, ">= 0.0.0", only: [:dev], runtime: false},
{:styler, "~> 0.11.9", only: [:dev, :test], runtime: false},
{:makeup, "1.1.2", only: [:dev], runtime: false},
{:makeup_elixir, "0.16.2", only: [:dev], runtime: false},
{:makeup_js, "~> 0.1.0", only: [:dev], runtime: false},
{:makeup_eex, "~> 0.1.2", only: [:dev], runtime: false}
]
end
defp package do
[
maintainers: ["Andrew Stewart"],
licenses: ["MIT"],
links: %{
Changelog: "https://hexdocs.pm/live_toast/changelog.html",
GitHub: "https://github.com/srcrip/live_toast",
Sponsor: "https://github.com/sponsors/srcrip"
},
files: files()
]
end
defp files do
~w"""
assets/js
priv
lib/live_toast.ex
lib/live_toast/components.ex
lib/live_toast/live_component.ex
lib/live_toast/utility.ex
CHANGELOG.md
LICENSE.md
mix.exs
package.json
README.md
"""
end
defp docs do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md"],
source_ref: @version,
source_url: "https://github.com/srcrip/live_toast",
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp aliases do
[
setup: ["deps.get", "cmd --cd assets npm install"],
"assets.build": ["esbuild module", "esbuild cdn", "esbuild cdn_min", "esbuild main"],
"assets.watch": ["esbuild module --watch"]
]
end
end