-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmix.exs
60 lines (56 loc) · 1.46 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 Spect.MixProject do
use Mix.Project
# project properties
def project do
[
app: :spect,
name: "Spect",
version: "0.4.1",
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
description: "Type specification extensions for Elixir.",
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.post": :test
],
dialyzer: [
ignore_warnings: ".dialyzerignore",
plt_add_deps: :transitive
],
docs: [
main: "readme",
extras: ["README.md"]
]
]
end
# hex package configuration
defp package do
[
files: ["mix.exs", "README.md", "lib"],
maintainers: ["Brent M. Spell"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => "https://github.com/pylon/spect",
"Docs" => "http://hexdocs.pm/spect/"
}
]
end
# project dependencies
defp deps do
[
{:memoize, "~> 1.3"},
{:excoveralls, "~> 0.13", only: :test},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:benchee, "~> 1.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.23", only: :dev, runtime: false}
]
end
# compilation paths
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end