-
Notifications
You must be signed in to change notification settings - Fork 3
/
rebar.config
104 lines (94 loc) · 3.31 KB
/
rebar.config
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
%%--------------------------------------------------------------------
%% compiler part
%%--------------------------------------------------------------------
{minimum_otp_vsn, "25.0"}.
{erl_opts, [debug_info
,deterministic
,warnings_as_errors
,warn_missing_spec
,verbose
,compressed
]}.
{validate_app_modules, true}.
%%--------------------------------------------------------------------
%% dependencies option part.
%%--------------------------------------------------------------------
{deps, [{cowboy, "~> 2.10"}
,{gun, "~> 2.0"}
,{thoas, "~> 1.0"}
]}.
%%--------------------------------------------------------------------
%% @TODO improve the shell invocation
%%--------------------------------------------------------------------
{shell, []}.
%%--------------------------------------------------------------------
%% cover option part.
%%--------------------------------------------------------------------
{cover_enabled, true}.
{cover_opts, [verbose]}.
%%--------------------------------------------------------------------
%% eunit configuration part.
%%--------------------------------------------------------------------
{eunit_opts, [verbose]}.
%%--------------------------------------------------------------------
%% edocs documentation generation.
%%--------------------------------------------------------------------
{edoc_opts,
[{preprocess, true}
,{private, true}
,{new, true}
,{todo, true}
,{report_missing_types, true}
,{link_predefined_types, true}
,{includes, ["include"]}
]}.
%%--------------------------------------------------------------------
%% Aliases. At this time, only a command helper to check automatically
%% the code with eunit, ct, cover and edoc.
%%--------------------------------------------------------------------
{alias
, [ {check
, [ {eunit, "--cover --verbose --profile"}
, {ct, "--cover --verbose"}
, {cover, "--verbose"}
, edoc
]
}
]
}.
%%--------------------------------------------------------------------
%% Profiles configuration.
%%--------------------------------------------------------------------
{profiles, [{prod, [{relx, {mod, prod}}]}]}.
%%--------------------------------------------------------------------
%% Release configuration. By default, nostr project embeds all
%% applications.
%%--------------------------------------------------------------------
{relx
, [ {release
, {nostr, "0.1.0"}
, [ bech32
, nostr
, nostr_client
, nostr_relay
, nostrlib
, sasl
]
}
, {sys_config, "./config/sys.config"}
, {vm_args, "./config/vm.args"}
, {dev_mode, true}
, {extended_start_script, true}
]
}.
%%--------------------------------------------------------------------
%% @TODO Escriptize configuration. This part of the configuration is
%% to produce an escriptize containing all application in one place
%% and use this application as standalone.
%%--------------------------------------------------------------------
% {escript_main_app, nostr_cli}.
% {escript_name, "nostr"}.
% {escript_incl_apps, [bech32, nostr, nostr_client, nostr_relay, nostrlib, sasl]}.
%%--------------------------------------------------------------------
%% @TODO add dialyzer support.
%%--------------------------------------------------------------------