-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
74 lines (67 loc) · 2.08 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 BitstylesPhoenix.MixProject do
use Mix.Project
def project do
[
app: :bitstyles_phoenix,
version: "2.5.0",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "A collection of Elixir phoenix helpers for bitstyles",
package: package(),
source_url: "https://github.com/bitcrowd/bitstyles_phoenix",
docs: [
main: "BitstylesPhoenix",
assets: "assets",
logo: "assets/logo.svg",
extras: ["CHANGELOG.md", "README.md", "LICENSE.txt"],
groups_for_modules: [
Helpers: ~r/Helper/,
Components: ~r/Component/,
"Live components": ~r/Live/,
"Alpine components": ~r/Alpine/
],
nest_modules_by_prefix: [
BitstylesPhoenix.Component,
BitstylesPhoenix.Alpine3,
BitstylesPhoenix.Live,
BitstylesPhoenix.Helper
],
before_closing_head_tag: &custom_css/1
]
]
end
def custom_css(:html), do: "<link rel=\"stylesheet\" href=\"assets/custom.css\">"
def custom_css(_), do: ""
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:jason, "~> 1.0"},
{:phoenix_live_view, "~> 0.18.12 or ~> 0.19.0 or ~> 0.20.0"},
{:phoenix_html, "~> 3.3 or ~> 4.0"},
{:floki, "~> 0.32.0", only: [:test, :dev]},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:credo, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp package() do
[
# This option is only needed when you don't want to use the OTP application name
name: "bitstyles_phoenix",
licenses: ~w[ISC],
links: %{
"GitHub" => "https://github.com/bitcrowd/bitstyles_phoenix",
"bitstyles" => "https://github.com/bitcrowd/bitstyles"
}
]
end
end