-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmix.exs
59 lines (49 loc) · 1.2 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
defmodule WiseHomex.MixProject do
use Mix.Project
def project do
[
app: :wise_homex,
version: "0.6.151",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: dialyzer()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto, "~> 3.0"},
{:quantity, git: "https://github.com/wise-home/quantity.git", tag: "1.0.4"},
# JSON parsing
{:jason, "~> 1.1"},
# HTTP Client
{:httpoison, "~> 2.0"},
# Static code analysis
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
# Documentation
{:ex_doc, "~> 0.21", only: [:dev]}
]
end
defp aliases do
[
compile: ["compile --warnings-as-errors"]
]
end
defp elixirc_paths(:test), do: ~w[lib test/support]
defp elixirc_paths(_), do: ~w[lib]
defp dialyzer do
[
plt_add_apps: [:ex_unit]
]
end
end