-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
85 lines (77 loc) · 1.83 KB
/
mix.exs
File metadata and controls
85 lines (77 loc) · 1.83 KB
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
defmodule Nstandard.MixProject do
use Mix.Project
def project do
[
app: :nstandard,
version: "0.3.0",
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() != :dev,
deps: deps(),
# Docs
name: "Nstandard",
description: "A standard library setup based on the Nerves project standard practices.",
source_url: "https://github.com/underjord/nstandard",
docs: docs(),
package: package(),
aliases: aliases(),
dialyzer: [
plt_add_apps: [:mix],
ignore_warnings: ".dialyzer_ignore.exs"
]
]
end
def cli do
[
preferred_envs: [precommit: :test]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
name: :nstandard,
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/underjord/nstandard"}
]
end
defp docs do
[
main: "readme",
extras: ["README.md"]
]
end
defp deps do
[
{:spellweaver, "~> 0.1", optional: true},
{:igniter, "~> 0.7", optional: true},
# Linters are all optional because we want to put them in the dependant project
{:ex_doc, "~> 0.40", optional: true, runtime: false},
{:dialyxir, "~> 1.4", optional: true, runtime: false},
{:credo, "~> 1.7", optional: true, runtime: false}
]
end
defp aliases do
[
check: [
"compile --warnings-as-errors --force",
"format --check-formatted",
"credo",
"dialyzer",
"spellweaver.check"
],
precommit: [
"compile --warnings-as-errors --force",
"format",
"credo",
"dialyzer",
"spellweaver.check",
"test"
]
]
end
end