-
Notifications
You must be signed in to change notification settings - Fork 23
/
mix.exs
111 lines (99 loc) · 2.88 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
defmodule Cldr.Numbers.Mixfile do
@moduledoc false
use Mix.Project
@version "2.33.4"
def project do
[
app: :ex_cldr_numbers,
version: @version,
elixir: "~> 1.11",
name: "Cldr Numbers",
description: description(),
source_url: "https://github.com/elixir-cldr/cldr_numbers",
docs: docs(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
package: package(),
compilers: [:leex, :yecc] ++ Mix.compilers(),
dialyzer: [
ignore_warnings: ".dialyzer_ignore_warnings",
plt_add_apps: ~w(inets jason mix)a,
flags: [
:error_handling,
:unknown,
:underspecs,
:extra_return,
:missing_return
]
]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp description do
"""
Number and currency localization and formatting functions for the Common Locale Data
Repository (CLDR).
"""
end
defp deps do
[
# {:ex_cldr, path: "../cldr", override: true},
{:ex_cldr, "~> 2.38"},
# {:ex_cldr_currencies, path: "../cldr_currencies"},
{:ex_cldr_currencies, "~> 2.16"},
{:digital_token, "~> 0.3 or ~> 1.0"},
{:decimal, "~> 1.6 or ~> 2.0"},
{:jason, "~> 1.0", optional: true},
{:ex_doc, "~> 0.18", only: [:dev, :release], optional: true, runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], optional: true, runtime: false},
{:phoenix_html, "~> 3.0", only: [:dev, :test, :release], optional: true, runtime: false},
{:exprof, "~> 0.2", only: :dev, optional: true, runtime: false},
{:benchee, "~> 1.0", only: :dev, optional: true, runtime: false}
]
end
defp package do
[
maintainers: ["Kip Cole"],
licenses: ["Apache-2.0"],
links: links(),
files: [
"lib",
"src/decimal_formats_lexer.xrl",
"src/decimal_formats_parser.yrl",
"src/rbnf_lexer.xrl",
"src/rbnf_parser.yrl",
"config",
"mix.exs",
"README*",
"CHANGELOG*",
"LICENSE*"
]
]
end
def docs do
[
source_ref: "v#{@version}",
main: "readme",
extras: ["README.md", "CHANGELOG.md", "LICENSE.md"],
logo: "logo.png",
formatters: ["html"],
skip_undefined_reference_warnings_on: ["changelog", "CHANGELOG.md"]
]
end
def links do
%{
"GitHub" => "https://github.com/elixir-cldr/cldr_numbers",
"Readme" => "https://github.com/elixir-cldr/cldr_numbers/blob/v#{@version}/README.md",
"Changelog" => "https://github.com/elixir-cldr/cldr_numbers/blob/v#{@version}/CHANGELOG.md"
}
end
defp elixirc_paths(:test), do: ["lib", "test", "mix"]
defp elixirc_paths(:dev), do: ["lib", "mix"]
defp elixirc_paths(_), do: ["lib"]
end