-
Notifications
You must be signed in to change notification settings - Fork 13
/
mix.exs
97 lines (87 loc) · 1.95 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
defmodule TzWorld.Mixfile do
use Mix.Project
@source_url "https://github.com/kimlai/tz_world"
@version "1.4.0"
def project do
[
app: :tz_world,
name: "TzWorld",
version: @version,
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
docs: docs(),
source_url: @source_url,
description: description(),
package: package(),
dialyzer: [
plt_add_apps: ~w(mix inets jason)a
]
]
end
def application do
[
extra_applications: [:logger, :public_key, :inets, :ssl, :wx, :observer]
]
end
defp deps do
[
{:geo, "~> 1.0 or ~> 2.0 or ~> 3.3 or ~> 4.0"},
{:jason, "~> 1.0"},
{:castore, "~> 0.1 or ~> 1.0", optional: true},
{:certifi, "~> 2.5", optional: true},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false, optional: true},
{:benchee, "~> 1.0", only: :dev, runtime: false}
]
end
defp description do
"""
Resolve time zone names from a location.
"""
end
defp package do
[
licenses: ["MIT"],
links: links(),
maintainers: ["Kim Laï Trinh", "Kip Cole"],
files: [
"lib",
"config",
"mix.exs",
"README*",
"CHANGELOG*",
"LICENSE*"
]
]
end
@priv "priv"
def aliases do
[
"compile.app": [
fn _ -> File.mkdir_p!(@priv) end,
"compile.app"
]
]
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
[
source_ref: "v#{@version}",
main: "readme",
extras: [
"README.md",
"LICENSE.md",
"CHANGELOG.md"
],
skip_undefined_reference_warnings_on: ["CHANGELOG.md", "README.md"]
]
end
end