-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
mix.exs
103 lines (95 loc) · 2.78 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
102
103
defmodule Doggo.MixProject do
use Mix.Project
@source_url "https://github.com/woylie/doggo"
@version "0.10.1"
def project do
[
app: :doggo,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.github": :test,
"coveralls.html": :test,
"coveralls.json": :test
],
dialyzer: [
list_unused_filters: true,
plt_add_apps: [:ex_unit, :mix],
plt_file: {:no_warn, ".plts/doggo.plt"}
],
name: "Doggo",
source_url: @source_url,
homepage_url: @source_url,
description: description(),
package: package(),
docs: docs()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.6", runtime: false, only: [:dev, :test]},
{:dialyxir, "~> 1.2", runtime: false, only: [:dev, :test]},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:excoveralls, "~> 0.18.0", runtime: false, only: [:test]},
{:floki, ">= 0.30.0", only: :test},
{:gettext, "~> 0.20", optional: true},
{:jason, "~> 1.0", only: [:dev, :test]},
{:makeup_diff, "~> 0.1.0", only: :dev},
{:phoenix_live_view, "~> 1.0.0"},
{:phoenix_storybook, "~> 0.6.0 or ~> 0.7.0"},
{:tzdata, "~> 1.1", only: [:test]}
]
end
defp description do
"""
Headless UI components for Phoenix
"""
end
defp package do
[
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => @source_url <> "/blob/main/CHANGELOG.md",
"Sponsor" => "https://github.com/sponsors/woylie"
},
files: ~w(lib .formatter.exs mix.exs CHANGELOG.md README* LICENSE*)
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md"],
logo: "assets/doggo.png",
source_ref: @version,
skip_undefined_reference_warnings_on: ["CHANGELOG.md"],
groups_for_docs: [
Buttons: &(&1[:type] == :buttons),
Data: &(&1[:type] == :data),
Feedback: &(&1[:type] == :feedback),
Form: &(&1[:type] == :form),
Layout: &(&1[:type] == :layout),
Media: &(&1[:type] == :media),
Menu: &(&1[:type] == :menu),
Miscellaneous: &(&1[:type] == :miscellaneous),
Navigation: &(&1[:type] == :navigation),
JS: &(&1[:type] == :js)
]
]
end
end