-
Notifications
You must be signed in to change notification settings - Fork 67
/
mix.exs
57 lines (52 loc) · 1.52 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
defmodule Conduit.Mixfile do
use Mix.Project
def project do
[
app: :conduit,
version: "0.0.1",
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
def application() do
[mod: {Conduit.Application, []}, extra_applications: [:eventstore]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:bcrypt_elixir, "~> 1.0"},
{:comeonin, "~> 4.0"},
{:commanded, "~> 1.1"},
{:commanded_ecto_projections, "~> 1.1"},
{:commanded_eventstore_adapter, "~> 1.1"},
{:eventstore, "~> 1.1"},
{:cors_plug, "~> 1.4"},
{:elixir_uuid, "~> 1.2"},
{:plug_cowboy, "~> 2.1"},
{:exconstructor, "~> 1.1"},
{:ex_machina, "~> 2.1", only: :test},
{:gettext, "~> 0.11"},
{:guardian, "~> 1.2"},
{:jason, "~> 1.1"},
{:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
{:phoenix, "~> 1.5"},
{:phoenix_ecto, "~> 4.0"},
{:postgrex, ">= 0.0.0"},
{:slugger, "~> 0.2"},
{:vex, "~> 0.6"}
]
end
defp aliases do
[
"event_store.init": ["event_store.drop", "event_store.create", "event_store.init"],
"ecto.init": ["ecto.drop", "ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
reset: ["event_store.init", "ecto.init"],
test: ["reset", "test"]
]
end
end