-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
99 lines (89 loc) · 2.28 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
defmodule Cldr.Utils.MixProject do
use Mix.Project
@version "2.28.2"
@source_url "https://github.com/elixir-cldr/cldr_utils"
def project do
[
app: :cldr_utils,
version: @version,
elixir: "~> 1.12",
description: description(),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
ignore_warnings: ".dialyzer_ignore_warnings",
plt_add_apps: ~w(inets decimal certifi castore)a
],
compilers: Mix.compilers()
]
end
defp description do
"""
Map, Calendar, Digits, Decimal, HTTP, Macro, Math, and String helpers for ex_cldr.
"""
end
def application do
[
extra_applications: [:logger, :inets, :ssl]
]
end
defp deps do
[
{:decimal, "~> 1.9 or ~> 2.0"},
{:castore, "~> 0.1 or ~> 1.0", optional: true},
{:certifi, "~> 2.5", optional: true},
{:ex_doc, ">= 0.0.0", optional: true, only: [:dev, :release], runtime: false},
{:stream_data, "~> 1.0", optional: true, only: :test},
{:dialyxir, "~> 1.0", optional: true, only: [:dev, :test], runtime: false},
{:benchee, "~> 1.0", optional: true, only: [:dev], runtime: false}
]
end
defp package do
[
maintainers: ["Kip Cole"],
licenses: ["Apache-2.0"],
links: links(),
files: [
"lib",
"config",
"mix.exs",
"README*",
"CHANGELOG*",
"LICENSE*"
]
]
end
def links do
%{
"GitHub" => @source_url,
"Readme" => "#{@source_url}/blob/v#{@version}/README.md",
"Changelog" => "#{@source_url}/blob/v#{@version}/CHANGELOG.md"
}
end
def docs do
[
extras: [
"CHANGELOG.md",
"LICENSE.md",
"README.md"
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"],
logo: "logo.png",
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp elixirc_paths(:test), do: ["lib", "mix", "test"]
defp elixirc_paths(:dev), do: ["lib", "mix", "benchee"]
defp elixirc_paths(_), do: ["lib"]
def aliases do
[]
end
end