-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathmix.exs
56 lines (50 loc) · 1.29 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
defmodule CF.RestApi.Mixfile do
use Mix.Project
def project do
[
app: :cf_rest_api,
version: "1.1.0",
build_path: "../../_build",
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
test_coverage: [tool: ExCoveralls]
]
end
def application do
[
mod: {CF.RestApi.Application, []},
extra_applications: [:logger]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib"]
defp elixirc_paths(_), do: ["lib"]
# Dependencies
defp deps do
[
{:corsica, "~> 1.0"},
{:cowboy, "~> 1.0"},
{:gettext, "~> 0.18.1"},
{:kaur, "~> 1.1"},
{:phoenix, "~> 1.3.0", override: true},
{:phoenix_html, "~> 2.6"},
{:phoenix_pubsub, "~> 1.0"},
{:poison, "~> 3.1"},
# ---- Internal ----
{:cf, in_umbrella: true},
{:db, in_umbrella: true}
]
end
defp aliases do
[]
end
end