forked from am-kantox/elixir-iteraptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
108 lines (98 loc) · 2.53 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
defmodule Iteraptor.Mixfile do
use Mix.Project
@app :iteraptor
@github "am-kantox/elixir-#{@app}"
@version "1.13.1"
def project do
[
app: @app,
version: @version,
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
aliases: aliases(),
docs: docs(),
xref: [exclude: []],
consolidate_protocols: Mix.env() != :test,
dialyzer: [
plt_file: {:no_warn, ".dialyzer/plts/dialyzer.plt"},
ignore_warnings: ".dialyzer/ignore.exs"
]
]
end
# Type "mix help compile.app" for more information
def application do
[
applications: [:logger]
]
end
# Type "mix help deps" for more examples and options
defp deps do
[
{:dialyxir, "~> 1.0.0-rc.6", only: [:ci, :dev], runtime: false},
{:credo, "~> 1.0", only: [:ci, :dev, :test], runtime: false},
{:stream_data, "~> 0.4", only: [:ci, :test], runtime: false},
{:ex_doc, "~> 0.19", only: :dev}
]
end
defp aliases do
[
quality: ["format", "credo --strict", "dialyzer"],
"quality.ci": [
"format --check-formatted",
"credo --strict",
"dialyzer --halt-exit-status"
]
]
end
defp description do
"""
This small library allows the deep iteration / mapping of Enumerables.
"""
end
defp package do
# These are the default files included in the package
[
name: @app,
files: ["lib", "config", "mix.exs", "README*"],
maintainers: ["Aleksei Matiushkin"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/#{@github}",
"Docs" => "http://hexdocs.pm/#{@app}"
}
]
end
defp docs do
[
main: "intro",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/#{@app}",
logo: "stuff/images/logo.png",
source_url: "https://github.com/#{@github}",
extras: ["stuff/pages/intro.md"],
groups_for_modules: [
# Iteraptor
Extras: [
Iteraptor.Array,
Iteraptor.Config,
Iteraptor.Extras,
Iteraptor.Iteraptable
],
Experimental: [
Iteraptor.AST
],
Internals: [
Iteraptor.Utils
]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:ci), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end