-
Notifications
You must be signed in to change notification settings - Fork 14
/
mix.exs
83 lines (75 loc) · 2.19 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
defmodule SurfaceBulma.MixProject do
use Mix.Project
@source_url "https://github.com/surface-ui/surface_bulma"
@version "0.6.0"
def project do
[
app: :surface_bulma,
description: "A set of simple Surface components based on Bulma.",
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers() ++ [:surface],
deps: deps(),
aliases: aliases(),
package: package(),
docs: [
groups_for_modules: [
Elements: [
~r/SurfaceBulma.(Block|Box|Button|Content|Delete|Image|Notification|ProgressBars|Table|Tag|Title|SubTitle).*/
],
Components: [
~r/SurfaceBulma.(BreadCrumb|Card|Dropdown|Menu|Message|Modal|Navbar|Pagination|Panel|Tabs).*/
],
Form: [~r/SurfaceBulma.Form.*/],
Icons: [~r/SurfaceBulma.Icon.*/]
],
nest_modules_by_prefix: [SurfaceBulma.Form, SurfaceBulma.Icon]
]
]
end
def application do
[
extra_applications: [:logger]
]
end
def catalogues do
[
"priv/catalogue",
"deps/surface/priv/catalogue"
]
end
defp elixirc_paths(:dev), do: ["lib"] ++ catalogues()
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:floki, "~> 0.25.0", only: :test},
{:jason, "~> 1.0"},
{:surface_catalogue, "~> 0.6.0", only: [:dev, :test]},
{:phoenix_live_reload, "~> 1.3", only: [:dev]},
{:surface_font_awesome, "~> 0.4.2"},
{:surface_utils, "~> 0.2.0"},
{:credo, "~> 1.5.6", only: :dev},
{:surface, "~> 0.12.0"},
{:surface_form_helpers, "~> 0.2.0"},
{:phoenix_ecto, "~> 4.0", only: [:test, :dev]},
{:ecto, "~> 3.12.2", only: [:test, :dev]},
{:ex_fixer, "~> 1.0.0", only: [:test, :dev]}
]
end
defp aliases do
[
dev: "run --no-halt dev.exs"
]
end
defp package() do
[
files: ["config", "lib", "mix.exs", "README*", "priv"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
end