forked from mtwilliams/blazon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
66 lines (56 loc) · 1.7 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
defmodule Blazon.Mixfile do
use Mix.Project
def project do
[name: "Blazon",
app: :blazon,
version: version(),
description: "Declarative abstract serializers.",
homepage_url: homepage_url(),
source_url: github_url(),
elixir: "~> 1.0",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
build_path: "_build",
deps_path: "_deps",
deps: deps(),
package: package(),
docs: docs(),
test_coverage: [tool: ExCoveralls]]
end
def application do
[applications: applications(Mix.env)]
end
defp applications(_), do: ~w()a ++ applications()
defp applications, do: ~w()a
defp homepage_url, do: github_url()
defp github_url, do: "https://github.com/mtwilliams/blazon"
defp documentation_url, do: "https://github.com/mtwilliams/blazon"
defp version do
"0.2.3"
end
defp elixirc_paths(:test), do: ~w(test/support) ++ elixirc_paths()
defp elixirc_paths(_), do: elixirc_paths()
defp elixirc_paths, do: ~w(lib)
defp deps do [
# Testing
{:poison, ">= 0.0.0", only: [:test, :docs], optional: true},
{:excoveralls, "~> 0.4", only: :test},
# Documentation
{:ex_doc, "~> 0.10", only: [:dev, :docs]},
{:earmark, "~> 0.1", only: [:dev, :docs]},
{:inch_ex, ">= 0.0.0", only: :docs}
] end
defp package do
[maintainers: ["Michael Williams"],
licenses: ["Public Domain"],
links: %{"GitHub" => github_url(), "Docs" => documentation_url()},
files: ~w(mix.exs lib README* LICENSE*)]
end
defp docs do
[main: "Blazon",
canonical: "http://hexdocs.pm/blazon",
source_ref: version(),
source_url: github_url()]
end
end