-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
57 lines (52 loc) · 1.18 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
defmodule AbsintheWebSocketClient.MixProject do
use Mix.Project
def project do
[
app: :absinthe_client,
version: "0.1.1",
elixir: "~> 1.14.1",
build_path: "_build",
config_path: "config/config.exs",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
dialyzer: dialyzer()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp dialyzer do
[
plt_add_apps: [:mix, :ex_unit],
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
defp deps do
[
{:jason, "~> 1.0"},
{:websockex, "~> 0.4.3"},
{:sobelow, "~> 0.11", only: [:test, :dev], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
"dev.clean": ["cmd make clean", "clean", "format", "compile"],
"dev.checks": [
"clean",
"format",
"compile",
" hex.outdated --within-requirements",
"credo",
"sobelow",
"cmd mix test --trace",
"dialyzer"
]
]
end
end