-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
64 lines (57 loc) · 1.4 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
defmodule DataSpecs.Mixfile do
use Mix.Project
def project do
[
app: :dataspecs,
name: "dataspecs",
version: "2.1.0",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: preferred_cli_env(),
description: "Provides structured parsing of data based on Typespecs.",
dialyzer: dialyzer(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger],
mod: {DataSpecs.App, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:plug, "~> 1.7", optional: true},
{:excoveralls, "~> 0.12", only: [:test]},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:credo, "~> 1.0", only: [:dev], runtime: false},
{:ex_doc, "~> 0.16", only: [:dev], runtime: false}
]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.github": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
end
defp dialyzer do
[
plt_local_path: "_build/plts",
plt_add_apps: [:mix, :plug]
]
end
defp docs do
[
source_url: "https://github.com/visciang/dataspecs",
extras: ["README.md"]
]
end
end