-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
58 lines (53 loc) · 1.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
defmodule Toru.MixProject do
use Mix.Project
def project do
[
app: :toru,
version: "2.7.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
escript: [main_module: Toru.MixProject],
releases: releases()
]
end
def application do
case Mix.env() do
:dev ->
[
extra_applications: [:logger, :runtime_tools],
mod: {
Toru.Application,
[]
}
]
_ ->
[
extra_applications: [:logger],
mod: {
Toru.Application,
[]
}
]
end
end
defp deps do
[
{:exsync, "~> 0.2", only: :dev},
{:ex_doc, "~> 0.14", only: :dev, runtime: false},
{:file_system, "~> 1.0", only: :dev},
{:httpoison, "~> 2.0"},
{:mox, "~> 1.0", only: :test},
{:plug_cowboy, "~> 2.6"},
{:poison, "~> 6.0"}
]
end
defp releases do
[
prod: [
include_executables_for: [:unix],
steps: [:assemble, :tar]
]
]
end
end