-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
47 lines (42 loc) · 1.04 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
defmodule EspEx.MixProject do
use Mix.Project
@version "VERSION" |> File.read!() |> String.trim()
def project do
[
app: :esp_ex,
version: @version,
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
dialyzer: [
plt_add_apps: [:mnesia],
flags: [
:unmatched_returns,
:error_handling,
:race_conditions
],
paths: ["_build/#{Mix.env()}/lib/esp_ex/consolidated"]
]
# aliases: [test: "test --no-start"]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {EspEx.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:ecto, "~> 2.2"},
{:postgrex, "~> 0.13"},
{:jason, "~> 1.0.0"},
{:uuid, "~> 1.1"}
]
end
defp elixirc_paths(:test), do: ["lib"]
defp elixirc_paths(_), do: ["lib"]
end