-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
60 lines (54 loc) · 1.33 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 Shapt.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :shapt,
version: @version,
elixir: "~> 1.9",
description: "An elixir feature toggle | flag | flipper library to make Blackbeard envy",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: compiler_paths(Mix.env()),
package: package()
] ++
docs()
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:plug, "~> 1.8.3", optional: true},
{:jason, "~> 1.2.2", optional: true},
{:poison, "~> 4.0.1", optional: true},
{:credo, "~> 1.5.5", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.24.2", only: :dev, runtime: false}
]
end
defp docs do
[
name: "Shapt",
source_ref: "v#{@version}",
source_url: "https://github.com/fcevado/shapt",
docs: [
main: "usage",
extras: ["USAGE.md", "CHANGELOG.md"]
]
]
end
def package do
[
licenses: ["Apache 2.0"],
mainteiners: ["Flávio Moreira Vieira"],
files: ["mix.exs", "lib", "LICENSE.md"],
links: %{
"Github" => "https://github.com/fcevado/shapt"
}
]
end
defp compiler_paths(:test), do: ["lib", "test/support"]
defp compiler_paths(_env), do: ["lib"]
end