-
Notifications
You must be signed in to change notification settings - Fork 15
/
mix.exs
84 lines (77 loc) · 2.03 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
defmodule LiveMonacoEditor.MixProject do
use Mix.Project
@source_url "https://github.com/BeaconCMS/live_monaco_editor"
@version "0.2.0"
def project do
[
app: :live_monaco_editor,
version: @version,
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
package: package(),
docs: docs(),
deps: deps(),
aliases: aliases(),
name: "LiveMonacoEditor",
homepage_url: "https://github.com/BeaconCMS/live_monaco_editor",
description: "Monaco Editor component for Phoenix LiveView"
]
end
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
maintainers: ["Leandro Pereira"],
licenses: ["MIT"],
links: %{
Changelog: "https://hexdocs.pm/live_monaco_editor/changelog.html",
GitHub: @source_url
},
files: [
"mix.exs",
"lib",
"assets/package.json",
"assets/js",
"priv",
"README.md",
"LICENSE.md",
"CHANGELOG.md"
]
]
end
defp docs do
[
main: "LiveMonacoEditor",
assets: "assets/images",
logo: "assets/images/live_monaco_editor_icon.png",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["CHANGELOG.md"],
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp deps do
[
{:esbuild, "~> 0.5", only: :dev},
{:ex_doc, "~> 0.29", only: :dev},
{:jason, "~> 1.3"},
{:phoenix, "~> 1.6"},
{:phoenix_live_view, "~> 0.16 or ~> 1.0"},
{:phoenix_live_reload, "~> 1.4", only: :dev},
{:plug_cowboy, "~> 2.6", only: :dev}
]
end
defp aliases do
[
dev: "run --no-halt dev.exs",
setup: ["deps.get", "assets.setup"],
"format.all": ["format", "cmd npm run format --prefix ./assets"],
"assets.setup": ["cmd --cd assets npm install"],
"assets.build": ["esbuild module", "esbuild main", "esbuild cdn", "esbuild cdn_min"],
"assets.watch": ["esbuild module --watch"]
]
end
end