-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
97 lines (90 loc) · 2.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
defmodule Legion.Umbrella.Mixfile do
use Mix.Project
def project do
[
app: :legion,
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
docs: docs(),
elixir: "~> 1.11",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
defp deps do
[
{:ex_doc, "~> 0.23.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.13.4", only: :test},
{:credo, "~> 1.5.4", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
"ecto.setup": ["ecto.create", "ecto.migrate", "run apps/legion/priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"legion.reg": [
"legion.reg.locale",
"legion.reg.nationality",
"legion.reg.messaging",
"legion.reg.political"
],
"legion.check": ["legion.check.timezone"],
"legion.setup": [
"ecto.create",
"legion.check",
"ecto.migrate",
"run apps/legion/priv/repo/seeds.exs",
"legion.reg",
"ua_inspector.download -f"
],
"legion.reset": ["legion.check", "ecto.reset", "legion.reg"]
]
end
def docs do
[
name: "Legion",
main: "up-and-running",
source_url: "https://github.com/Chatatata/Legion",
extra_section: "GUIDES",
extras: extras(),
groups_for_extras: groups_for_extras(),
groups_for_modules: groups_for_modules()
]
end
def extras do
[
"guides/introduction/Up and Running.md",
"guides/introduction/Configuration.md",
"guides/iam/Preface-IAM.md",
"guides/iam/Configuration-IAM.md",
"guides/mpb/Preface-MPB.md",
"guides/mpb/Configuration-MPB.md"
]
end
def groups_for_extras do
[
"Getting Started": ~r/guides\/introduction\/.?/,
"Identity & Access Management": ~r/guides\/iam\/.?/,
"Messaging Relay & Push": ~r/guides\/mpb\/.?/
]
end
def groups_for_modules do
[
"Identity and Access Control": [
Legion.Identity.Auth.AccessControl.ControllerAction,
Legion.Identity.Auth.AccessControl.Permission,
Legion.Identity.Auth.AccessControl.PermissionSet,
Legion.Identity.Auth.AccessControl.PermissionSetCache,
Legion.Identity.Auth.AccessControl.PermissionSetGrant,
Legion.Identity.Auth.AccessControl.PermissionSetCacheEntry
]
]
end
end