-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
88 lines (77 loc) · 1.85 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
defmodule AFK.MixProject do
@moduledoc false
use Mix.Project
@version "0.3.2"
@source_url "https://github.com/nerves-keyboard/afk"
def project do
[
app: :afk,
version: @version,
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
preferred_cli_env: preferred_cli_env(),
test_coverage: [tool: ExCoveralls],
dialyzer: dialyzer(),
description: description(),
package: package(),
docs: docs(),
deps: deps()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
def application do
[
extra_applications: [:logger]
]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.json": :test
]
end
defp dialyzer do
[
plt_core_path: "_build/#{Mix.env()}"
]
end
defp description do
"""
A library for modeling the internal state of a computer keyboard
"""
end
defp package do
[
files: ["lib", ".formatter.exs", "mix.exs", "README.md", "LICENSE.md"],
maintainers: ["Chris Dosé <chris.dose@gmail.com>"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Readme" => "#{@source_url}/blob/v#{@version}/README.md"
}
]
end
defp docs do
[
source_ref: "v#{@version}",
source_url: @source_url,
extras: [
"README.md": [title: "README"],
"LICENSE.md": [title: "LICENSE"]
]
]
end
defp deps do
[
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:excoveralls, "~> 0.10", only: :test}
]
end
end