-
Notifications
You must be signed in to change notification settings - Fork 16
/
mix.exs
54 lines (46 loc) · 1.31 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
defmodule ExCLI.Mixfile do
use Mix.Project
@version "0.1.6"
def project do
[app: :ex_cli,
version: @version,
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
description: "Library to build CLI applications",
source_url: "https://github.com/tuvistavie/ex_cli",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
package: package(),
test_coverage: [tool: ExCoveralls],
deps: deps(),
docs: [source_ref: "#{@version}", extras: ["README.md"], main: "readme"]]
end
defp elixirc_paths(:dev), do: elixirc_paths(:test)
defp elixirc_paths(:test), do: ["sample", "lib"]
defp elixirc_paths(_all), do: ["lib"]
def application do
[applications: applications(Mix.env)]
end
defp applications(:test) do
applications(:all) ++ [:hackney]
end
defp applications(_all) do
[:logger]
end
defp deps do
[{:excoveralls, "~> 0.5", only: :test},
{:earmark, "~> 1.0", only: :docs},
{:ex_doc, "~> 0.19", only: :docs}]
end
defp package do
[
maintainers: ["Daniel Perez"],
files: ["lib", "mix.exs", ".formatter.exs", "README.md"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/tuvistavie/ex_cli",
"Docs" => "http://hexdocs.pm/ex_cli/"
}
]
end
end