This repository has been archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
74 lines (68 loc) · 2.05 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
defmodule PhoenixAssetPipeline.MixProject do
use Mix.Project
@description "Asset pipeline for Phoenix app"
@runtimes Mix.env() in [:dev, :test]
@source_url "https://github.com/Youimmi/phoenix_asset_pipeline"
@version "0.1.1"
def project do
[
app: :phoenix_asset_pipeline,
version: @version,
compilers: Mix.compilers(),
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
description: @description,
package: package(),
deps: deps(),
aliases: aliases(),
dialyzer: [plt_add_apps: [:iex, :mix, :phoenix_live_view]],
source_url: @source_url
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {PhoenixAssetPipeline, []},
extra_applications: [:logger]
]
end
defp package do
[
files: ["lib", "LICENSE", "mix.exs", "README.md"],
maintainers: ["Yuri S."],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:brotli, "~> 0.3"},
{:credo, "~> 1.6", only: :dev, runtime: false},
{:dart_sass, "~> 0.5", runtime: @runtimes},
{:dialyxir, "~> 1.2", only: :dev, runtime: false},
{:esbuild, "~> 0.6", runtime: @runtimes},
{:ex_doc, "~> 0.29", only: :dev, runtime: false},
{:floki, "~> 0.34"},
{:jason, "~> 1.5.0-alpha.1"},
{:jason_native, "~> 0.1.0"},
{:mix_audit, "~> 2.1", only: @runtimes, runtime: false},
{:phoenix, "~> 1.7.0-rc.2", override: true, runtime: false},
{:phoenix_html, "~> 3.2"},
{:phoenix_live_view, "~> 0.18.11", runtime: false},
{:plug_cowboy, "~> 2.6"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
setup: ["deps.get"],
upgrade: ["cmd rm -rf _build deps mix.lock", "setup"]
]
end
end