-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
46 lines (41 loc) · 1007 Bytes
/
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
defmodule Knot.Mixfile do
use Mix.Project
@name :knot
@version "0.1.0"
def project do
[
app: @name,
version: @version,
elixir: "~> 1.4",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
deps: deps(Mix.env)
]
end
def application do
[
mod: {Knot.Application, []},
extra_applications: [:logger, :ecto]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps(:test) do
[] ++ deps(:prod)
end
defp deps(:dev) do
[] ++ deps(:prod)
end
defp deps(:prod) do
[
{:bertex, "~> 1.2"},
{:postgrex, "~> 0.13"},
{:ecto, "~> 2.2"}
]
end
end