-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
49 lines (43 loc) · 1.11 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
defmodule Bank.MixProject do
use Mix.Project
def project do
[
app: :bank,
version: "0.1.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Bank.Application, []},
extra_applications: [:logger, :eventstore]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Domain
{:commanded, github: "commanded/commanded", override: true},
{:commanded_eventstore_adapter, "~> 0.3"},
{:commanded_ecto_projections, "~> 0.6"},
{:ecto, "~> 2.1"},
{:postgrex, ">= 0.0.0"},
{:uuid, "~> 1.1"},
{:eventstore, ">= 0.13.0"},
]
end
defp aliases do
[
setup_es: ["event_store.create", "event_store.init"],
setup_ecto: ["ecto.create", "ecto.migrate"],
setup_db: ["setup_es", "setup_ecto"],
drop_db: ["ecto.drop", "event_store.drop"],
reset_db: ["drop_db", "setup_db"],
test: ["reset_db", "test --trace"],
]
end
end