-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
92 lines (84 loc) · 2.07 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
defmodule Ack.MixProject do
use Mix.Project
@app :ack
@version "0.4.0"
def project do
[
app: @app,
name: "Ack",
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
package: package(),
xref: [exclude: []],
description: description(),
aliases: aliases(),
deps: deps(),
docs: docs(),
dialyzer: [
plt_file: {:no_warn, ".dialyzer/dialyzer.plt"},
plt_add_deps: :app_tree,
plt_add_apps: [:mix],
list_unused_filters: true,
ignore_warnings: ".dialyzer/ignore.exs"
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :camarero],
mod: {Ack.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:camarero, "~> 1.0"},
{:credo, "~> 1.0", only: [:dev, :test]},
{:dialyxir, "~> 1.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
defp description do
"""
Tiny drop-in for painless acknowledgements across different applications.
"""
end
defp package do
[
name: @app,
files: ~w|config lib mix.exs README.md|,
maintainers: ["Aleksei Matiushkin"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/am-kantox/#{@app}",
"Docs" => "https://hexdocs.pm/#{@app}"
}
]
end
defp aliases do
[
test: ["test --exclude distributed", "test --exclude test include distributed"],
quality: ["format", "credo --strict", "dialyzer --unmatched_returns"],
"quality.ci": [
"format --check-formatted",
"credo --strict",
"dialyzer"
]
]
end
defp docs do
[
main: "how_to_ack",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/#{@app}",
logo: "stuff/i/logo-48.png",
source_url: "https://github.com/am-kantox/#{@app}",
extras: [
"stuff/how_to_ack.md",
"stuff/plugging_it_in.md"
]
]
end
end