-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
73 lines (69 loc) · 1.9 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
defmodule MirraBackend.MixProject do
use Mix.Project
def project do
[
name: "mirra_backend",
apps_path: "apps",
apps: [
:arena,
:champions,
:game_client,
:gateway,
:game_backend,
:arena_load_test,
:configurator,
:bot_manager
],
version: "0.1.0",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
releases: releases(),
default_release: :all,
docs: [
groups_for_modules: [
Arena: [~r"Arena", Physics],
"Arena Load Test": ~r"ArenaLoadTest",
Champions: ~r"Champions",
Configurator: ~r"Configurator",
"Bot Manager": ~r"BotManager",
"Game Backend": ~r"GameBackend",
GameClient: ~r"GameClient",
Gateway: ~r"Gateway"
]
]
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#
# Run "mix help deps" for examples and options.
defp deps do
[{:ex_doc, "~> 0.21", only: :dev, runtime: false}]
end
defp aliases() do
[
setup: ["deps.get", "ecto.setup"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.reset --quiet", "ecto.migrate --quiet", "run priv/repo/seeds.exs", "test"]
]
end
defp releases() do
[
arena: [applications: [arena: :permanent]],
arena_load_test: [applications: [arena_load_test: :permanent]],
bot_manager: [applications: [bot_manager: :permanent]],
game_client: [applications: [game_client: :permanent]],
central_backend: [
applications: [
champions: :permanent,
game_backend: :permanent,
gateway: :permanent,
configurator: :permanent
]
]
]
end
end