-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
69 lines (60 loc) · 1.33 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
defmodule Events.MixProject do
use Mix.Project
@name "events"
@version "0.1.0"
def project do
[
app: :events,
version: @version,
elixir: "~> 1.11",
name: @name,
start_permanent: Mix.env() == :prod,
docs: docs(),
deps: deps(),
aliases: aliases(),
# testing
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.github": :test
],
# type checking
dialyzer: [plt_add_deps: :transitive]
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:erlang_psq, "~> 1.0"},
# dev/test dependencies
{:credo, "~> 0.8.8", only: [:dev], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:ex_doc, "~> 0.20", only: :dev, runtime: false}
]
end
defp docs(),
do: [
source_ref: "v#{@version}",
main: "readme",
extras: ["README.md"]
]
defp aliases do
[
check: [
"compile --warnings-as-errors",
"format --check-formatted",
"credo --strict",
# "coveralls ",
"dialyzer"
]
]
end
end