-
Notifications
You must be signed in to change notification settings - Fork 35
/
mix.exs
59 lines (50 loc) · 1.2 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
defmodule Calendar.Mixfile do
use Mix.Project
@version "1.0.0"
def project do
[
app: :calendar,
name: "Calendar",
version: @version,
elixir: "~> 1.4",
consolidate_protocols: false,
package: package(),
description: description(),
deps: deps(),
docs: docs(),
source_url: "https://github.com/lau/calendar"
]
end
def application do
[applications: [:logger, :tzdata]]
end
def deps do
[
{:tzdata, "~> 0.5.20 or ~> 0.1.201603 or ~> 1.0"},
{:ex_doc, ">= 0.20.2", only: :dev, runtime: false}
]
end
defp package do
%{
licenses: ["MIT"],
maintainers: ["Lau Taarnskov"],
links: %{"GitHub" => "https://github.com/lau/calendar"},
files: ~w(lib mix.exs README* LICENSE*
CHANGELOG*)
}
end
defp docs do
[
main: "readme",
extras: ["README.md"],
source_ref: "v#{@version}"
]
end
defp description do
"""
Calendar is a datetime library for Elixir.
Timezone support via its sister package `tzdata`.
Safe parsing and formatting of standard formats (ISO, RFC, etc.), strftime formatting. Extendable through protocols.
"""
end
end