-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
mix.exs
114 lines (105 loc) · 2.93 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
104
105
106
107
108
109
110
111
112
113
114
defmodule PhoenixStorybook.MixProject do
use Mix.Project
@version "0.6.4"
def project do
[
app: :phoenix_storybook,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
name: "phoenix_storybook",
description: "A pluggable storybook for your Phoenix components.",
source_url: "https://github.com/phenixdigital/phoenix_storybook",
aliases: aliases(),
deps: deps(),
package: package(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.lcov": :test,
coverage: :test
],
dialyzer: [
plt_add_apps: [:mix],
plt_local_path: ".plts",
plt_core_path: ".plts",
plt_file: {:no_warn, ".plts/storybook.plt"}
],
prune_code_paths: false
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {PhoenixStorybook.Application, []},
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/fixtures"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:phoenix, "~> 1.7.0"},
{:phoenix_live_view, "> 0.18.7"},
{:phoenix_html_helpers, "~> 1.0"},
{:phoenix_view, "~> 2.0"},
{:makeup_eex, "~> 1.0.0"},
{:heroicons, "~> 0.5", optional: true},
{:jason, "~> 1.3", optional: true},
{:earmark, "~> 1.4"},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.30", only: :dev, runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:floki, "~> 0.36.1", only: :test},
{:mox, "~> 1.0", only: :test},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
main: "PhoenixStorybook",
source_ref: "v#{@version}",
source_url: "https://github.com/phenixdigital/phoenix_storybook",
extra_section: "GUIDES",
extras: extras(),
nest_modules_by_prefix: [PhoenixStorybook]
]
end
defp extras do
[
"guides/components.md",
"guides/icons.md",
"guides/sandboxing.md",
"guides/setup.md",
"guides/testing.md",
"guides/theming.md"
]
end
defp package do
[
maintainers: ["Christian Blavier"],
files:
~w(mix.exs priv lib guides README.md LICENSE.md CHANGELOG.md CONTRIBUTING.md .formatter.exs),
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/phenixdigital/phoenix_storybook"}
]
end
defp aliases do
[
coverage: "coveralls.lcov",
"assets.watch": "cmd npm run watch --prefix assets",
"assets.build": [
"cmd npm run build --prefix assets",
"phx.digest",
"phx.digest.clean"
],
publish: [
"assets.build",
"hex.publish"
]
]
end
end