-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
104 lines (90 loc) · 2.22 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
defmodule Riot.MixProject do
use Mix.Project
@source_url "https://github.com/ed-flanagan/riot_lor"
@version "1.1.1"
def project do
[
app: :riot_lor,
version: @version,
elixir: "~> 1.12",
deps: deps(),
# Hex
package: package(),
source_url: @source_url,
# Docs
name: "Riot LoR",
description: "Riot LoR deck code library",
docs: docs(),
# Coverage
# https://github.com/parroty/excoveralls#mixexs
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test],
# Dialyzer
dialyzer: dialyzer()
]
end
defp deps do
[
{:benchee, "~> 1.0", only: :dev, runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.24", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.14", only: :test, runtime: false},
# NOTE: also `:dev` for formatter's `:import_deps`
{:stream_data, "~> 1.1", only: [:dev, :test], runtime: false}
]
end
defp package() do
[
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
maintainers: ["Ed Flanagan"],
files: ~w(docs lib .formatter.exs CHANGELOG.md CONTRIBUTING.md LICENSE mix.exs)
]
end
defp docs do
[
main: "Riot.LoR.DeckCode",
source_url: @source_url,
source_ref: "v#{@version}",
extras: extras(),
groups_for_extras: groups_for_extras(),
groups_for_modules: groups_for_modules(),
markdown_processor: {ExDoc.Markdown.Earmark, footnotes: true}
]
end
defp extras() do
[
# Guides
"docs/deck_codes.md",
# General
"CHANGELOG.md",
"README.md": [title: "Readme"],
"CONTRIBUTING.md": [title: "Contributing"]
]
end
defp groups_for_extras do
[
Guides: Path.wildcard("docs/*.md")
]
end
defp groups_for_modules do
[
LoR: [
Riot.LoR.Card,
Riot.LoR.Deck,
Riot.LoR.DeckCode,
Riot.LoR.Faction
],
Util: [
Riot.Util.Varint.LEB128,
Riot.Util.Varint.VLQ
]
]
end
defp dialyzer do
[
list_unused_filters: true
]
end
end