-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
87 lines (78 loc) · 2.08 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
defmodule Cldr.Calendars.Composite.MixProject do
use Mix.Project
@version "1.0.1"
def project do
[
app: :ex_cldr_calendars_composite,
version: @version,
elixir: "~> 1.11",
name: "Cldr Composite Calendars",
source_url: "https://github.com/elixir-cldr/cldr_calendars_composite",
docs: docs(),
description: description(),
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
ignore_warnings: ".dialyzer_ignore_warnings",
plt_add_apps: ~w()a
]
]
end
defp description do
"""
Composite calendars (composing non-overlapping calendars into one)
using the Common Locale Data Repository (CLDR).
"""
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_cldr_calendars, "~> 1.17"},
{:jason, "~> 1.0"},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false, optional: true},
{:ex_doc, "~> 0.21", only: [:release, :dev]},
]
end
defp package do
[
maintainers: ["Kip Cole"],
licenses: ["Apache-2.0"],
links: links(),
files: [
"lib",
"mix.exs",
"README*",
"CHANGELOG*",
"LICENSE*"
]
]
end
def links do
%{
"GitHub" => "https://github.com/elixir-cldr/cldr_calendars_composite",
"Changelog" =>
"https://github.com/elixir-cldr/cldr_calendars_composite/blob/v#{@version}/CHANGELOG.md",
"Readme" =>
"https://github.com/elixir-cldr/cldr_calendars_composite/blob/v#{@version}/README.md"
}
end
def docs do
[
source_ref: "v#{@version}",
main: "readme",
extras: ["README.md", "CHANGELOG.md", "LICENSE.md"],
logo: "logo.png",
skip_undefined_reference_warnings_on: ["changelog", "readme", "CHANGELOG.md"]
]
end
defp elixirc_paths(:test), do: ["lib", "mix", "test"]
defp elixirc_paths(:dev), do: ["lib", "mix"]
defp elixirc_paths(:docs), do: ["lib", "mix"]
defp elixirc_paths(_), do: ["lib"]
end