-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathmix.exs
47 lines (41 loc) · 1.25 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 Bank.Mixfile do
use Mix.Project
def project do
[app: :bank,
version: "0.1.0",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: ">= 1.4.2",
elixirc_paths: elixirc_paths(Mix.env),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps(),
docs: [main: "Bank"]]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[applications: [:logger, :ecto, :postgrex, :auth, :money],
mod: {Bank.Application, []}]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[{:ecto, "~> 2.0"},
{:postgrex, ">= 0.0.0"},
{:scrivener_ecto, github: "drewolson/scrivener_ecto"},
{:auth, in_umbrella: true},
{:messenger, in_umbrella: true},
{:money, in_umbrella: true}]
end
defp aliases do
["ecto.setup": ["ecto.create", "ecto.migrate", "ecto.seed"],
"ecto.seed": ["run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"test": ["ecto.create --quiet", "ecto.migrate", "test"]]
end
end