-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmix.exs
88 lines (79 loc) · 2.06 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
defmodule Excal.MixProject do
use Mix.Project
@version "0.3.2"
@source_url "https://github.com/peek-travel/excal"
def project do
[
app: :excal,
compilers: [:elixir_make] ++ Mix.compilers(),
version: @version,
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
docs: docs(),
source_url: @source_url,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: preferred_cli_env(),
make_clean: ["clean"],
dialyzer: dialyzer()
]
end
defp dialyzer do
[
plt_add_deps: :app_tree,
plt_file: {:no_warn, "priv/plts/excal.plt"}
]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.html": :test,
"coveralls.json": :test
]
end
def application do
[
extra_applications: [:logger]
]
end
defp description do
"""
NIF bindings to libical providing icalendar rrule expansion.
"""
end
defp package do
[
files: ["lib", ".formatter.exs", "mix.exs", "README.md", "LICENSE.md", "CHANGELOG.md", "src", "Makefile"],
maintainers: ["Chris Dosé <[email protected]>"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Readme" => "#{@source_url}/blob/#{@version}/README.md",
"Changelog" => "#{@source_url}/blob/#{@version}/CHANGELOG.md"
}
]
end
defp docs do
[
main: "Excal",
source_ref: @version,
source_url: @source_url,
extras: ["README.md", "LICENSE.md"],
groups_for_modules: [
Recurrence: [Excal.Recurrence.Iterator, Excal.Recurrence.Stream]
]
]
end
defp deps do
[
{:benchee, "~> 1.0", only: :dev, runtime: false},
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1.0", only: [:dev, :test], runtime: false},
{:elixir_make, "~> 0.6", runtime: false},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:excoveralls, "~> 0.12", only: :test, runtime: false}
]
end
end