This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
/
mix.exs
149 lines (145 loc) · 4.34 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
defmodule EWallet.Umbrella.Mixfile do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
deps: deps(),
aliases: aliases(),
docs: docs(),
dialyzer: [
flags: [:underspecs, :unknown, :unmatched_returns],
plt_add_apps: [:iex, :mix],
plt_core_path: System.get_env("PLT_CORE_PATH"),
ignore_warnings: ".dialyzer_ignore.exs",
flags: ~w(-Wunmatched_returns -Werror_handling -Wunderspecs)
]
]
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
[
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev, :test], runtime: false},
{:distillery, "~> 1.5", runtime: false},
{:ex_doc, "~> 0.19", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.8", only: :test, runtime: false},
{:junit_formatter, "~> 3.0", only: :test}
]
end
# Aliases for easier command executions
def aliases do
[
init: [
"ecto.create",
"ecto.migrate",
"seed"
],
reset: [
"ecto.drop",
"ecto.create",
"ecto.migrate"
],
seed: [
"omg.seed"
]
]
end
def docs do
[
assets: "assets/",
main: "introduction",
extra_section: "Guides",
extras: [
{"README.md", [filename: "introduction", title: "Introduction"]},
"docs/demo.md",
"docs/faq.md",
# Design
"docs/design/components.md",
"docs/design/conventions.md",
"docs/design/databases.md",
"docs/design/design.md",
"docs/design/transactions_and_entries.md",
"docs/design/wallets.md",
# Guides
"docs/guides/api_responsibilities.md",
"docs/guides/entities.md",
"docs/guides/ewallet_api_websockets.md",
"docs/guides/guides.md",
"docs/guides/transaction_request_flow.md",
"docs/guides/usage.md",
"docs/guides/two_factor_authentication.md",
# Setup
"docs/setup/advanced/api_specs.md",
"docs/setup/advanced/clustering.md",
"docs/setup/advanced/env.md",
"docs/setup/advanced/settings.md",
"docs/setup/upgrading/README.md",
"docs/setup/upgrading/v1.0.0.md",
"docs/setup/upgrading/v1.1.0.md",
"docs/setup/bare_metal.md",
"docs/setup/docker.md",
"docs/setup/vagrant.md",
# Tests
"docs/tests/tests.md"
],
groups_for_extras: [
"Getting Started": [
"README.md",
"docs/demo.md",
"docs/faq.md"
],
"Setting Up": [
"docs/setup/docker.md",
"docs/setup/vagrant.md",
"docs/setup/bare_metal.md"
],
Guides: [
"docs/guides/usage.md",
"docs/guides/api_responsibilities.md",
"docs/guides/entities.md",
"docs/guides/transaction_request_flow.md",
"docs/guides/ewallet_api_websockets.md"
],
"Technical Design": [
"docs/design/components.md",
"docs/design/databases.md",
"docs/design/wallets.md",
"docs/design/transactions_and_entries.md",
"docs/design/conventions.md"
],
Tests: [
"docs/tests/tests.md"
],
"Advanced Setup": [
"docs/setup/advanced/env.md",
"docs/setup/advanced/settings.md",
"docs/setup/advanced/clustering.md",
"docs/setup/advanced/api_specs.md"
]
],
groups_for_modules: [
"eWallet API": ~r/EWalletAPI(?!\.V\d+)(\..+)*$/,
"eWallet API V1": ~r/EWalletAPI.V1(\..+)*$/,
"Admin API": ~r/AdminAPI(?!\.V\d+)(\..+)*$/,
"Admin API V1": ~r/AdminAPI.V1(\..+)*$/,
eWallet: ~r/EWallet(\..+)*$/,
"eWallet DB": ~r/EWalletDB(\..+)*$/,
"Local Ledger": ~r/LocalLedger(\..+)*$/,
"Local Ledger DB": ~r/LocalLedgerDB(\..+)*$/,
"URL Dispatcher": ~r/UrlDispatcher(\..+)*$/
]
]
end
end