-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
74 lines (66 loc) · 1.64 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
defmodule Ion.MixProject do
use Mix.Project
@version "0.1.0"
@github_url "https://github.com/sabiwara/ion"
def project do
[
app: :ion,
version: @version,
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
preferred_cli_env: [
docs: :docs,
"hex.publish": :docs,
dialyzer: :test,
"test.unit": :test,
"test.prop": :test
],
dialyzer: [flags: [:missing_return, :extra_return]],
aliases: aliases(),
consolidate_protocols: Mix.env() != :test,
# hex
description: "Lightweight utility library for efficient IO data and chardata handling",
package: package(),
name: "Ion",
docs: docs()
]
end
def application do
[]
end
defp deps do
[
# doc, benchs
{:ex_doc, "~> 0.28", only: :docs, runtime: false},
{:benchee, "~> 1.1", only: :bench, runtime: false},
# CI
{:dialyxir, "~> 1.0", only: :test, runtime: false},
{:stream_data, "~> 1.0", only: :test}
]
end
defp package do
[
maintainers: ["sabiwara"],
licenses: ["MIT"],
links: %{"GitHub" => @github_url},
files: ~w(lib mix.exs README.md LICENSE.md CHANGELOG.md images/logo_small.png)
]
end
defp aliases do
[
"test.unit": ["test --exclude property:true"],
"test.prop": ["test --only property:true"]
]
end
defp docs do
[
main: "Ion",
logo: "images/logo_small.png",
source_ref: "v#{@version}",
source_url: @github_url,
homepage_url: @github_url,
extras: ["README.md", "CHANGELOG.md", "LICENSE.md"]
]
end
end