-
Notifications
You must be signed in to change notification settings - Fork 21
/
mix.exs
60 lines (52 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
60
defmodule Decorator.Mixfile do
use Mix.Project
@source_url "https://github.com/arjan/decorator"
@version File.read!("VERSION")
def project do
[
app: :decorator,
version: @version,
elixir: "~> 1.5",
elixirc_options: elixirrc_options(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirrc_options(:test), do: []
defp elixirrc_options(_), do: [warnings_as_errors: true]
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp docs do
[
extras: ["README.md"],
main: "readme",
formatter_opts: [gfm: true],
homepage_url: @source_url,
source_url: @source_url,
api_reference: false
]
end
defp package do
[
description: description(),
files: ["lib", "mix.exs", "*.md", "LICENSE", "VERSION"],
maintainers: ["Arjan Scherpenisse"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp description do
"Function decorators for Elixir"
end
end