-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
96 lines (86 loc) · 2.33 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
defmodule CldrRoutes.MixProject do
use Mix.Project
@version "1.3.1"
def project do
[
app: :ex_cldr_routes,
version: @version,
elixir: "~> 1.11",
description: "Cldr-based localized route generation and path helpers for Phoenix",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
deps: deps(),
compilers: Mix.compilers(),
# Docs
name: "Cldr Routes",
source_url: "https://github.com/elixir-cldr/cldr_routes",
homepage_url: "https://hex.pm/packages/ex_cldr_routes",
docs: docs(),
dialyzer: [
ignore_warnings: ".dialyzer_ignore_warnings",
plt_add_apps: ~w(jason mix phoenix_live_view phoenix_html gettext)a
]
]
end
def application do
[
extra_applications: [:logger]
]
end
def docs do
[
formatters: ["html"],
source_ref: "v#{@version}",
main: "readme",
logo: "logo.png",
extras: [
"README.md",
"LICENSE.md",
"CHANGELOG.md"
],
skip_undefined_reference_warnings_on: ["changelog", "CHANGELOG.md"]
]
end
defp deps do
[
{:ex_cldr, "~> 2.37"},
{:phoenix_html_helpers, "~> 1.0"},
{:phoenix_live_view, "~> 0.18", optional: true},
{:jason, "~> 1.0"},
{:gettext, "~> 0.26"},
{:ex_doc, "~> 0.18", only: [:release, :dev]},
{:dialyxir, "~> 1.0", only: [:test, :dev, :release], runtime: false, optional: true}
]
end
defp package do
[
licenses: ["Apache-2.0"],
maintainers: ["Kip Cole"],
links: links(),
files: [
"lib",
"mix.exs",
"README.md",
"LICENSE.md",
"CHANGELOG.md"
]
]
end
def aliases do
[]
end
def links do
%{
"GitHub" => "https://github.com/elixir-cldr/cldr_routes",
"Readme" => "https://github.com/elixir-cldr/cldr_routes/blob/v#{@version}/README.md",
"Changelog" => "https://github.com/elixir-cldr/cldr_routes/blob/v#{@version}/CHANGELOG.md"
}
end
defp elixirc_paths(:test), do: ["lib", "src", "mix", "test", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "mix", "bench"]
defp elixirc_paths(:release), do: ["lib"]
defp elixirc_paths(_), do: ["lib"]
end