-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathrebar.config
98 lines (87 loc) · 2.41 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
% vim:ts=4 sw=4 et ft=erlang
{cover_enabled, true}.
{erl_opts, [
debug_info
]}.
{pre_hooks, [
{"(linux|darwin|solaris|bsd)", compile, "./do-plugins.escript"},
{"(linux|darwin|solaris|bsd)", compile, "etc/assemble_config.escript etc etc/autogenerated.config.all"},
%{"(linux|darwin|solaris|bsd)", release, "./make_version_file.escript go"},
{"win32", compile, "pre_compile.cmd"}
]}.
{post_hooks, [
%{"(linux|darwin|solaris|bsd)", release, "./make_version_file.escript finish"}
]}.
{relx, [{release, {nitrogen, git}, [
sasl,
{cowboy, load},
{sync, load},
{nitrogen_core, load},
nprocreg,
nitro_cache,
simple_bridge,
qdate,
inets,
canister,
{erlang_ds, load},
nitrogen_website
]},
{sys_config, "etc/autogenerated.config.all"},
{vm_args, "vm.args"},
{mode, prod},
{include_erts, false},
%% Nitrogen requires debug_info or all behaviors will fail.
{debug_info, keep},
{extended_start_script, true},
{overlay, [
{copy, "priv", "priv"}
% {copy, "site", "site"}
]}
]
}.
%% This rule is for backwards compatibility with Nitrogen 2. By uncommenting
%% this rule, it will add some redundant class names to the HTML generated
%% element. For example, this will ensure that a #textbox{} element will be
%% produce HTML with a 'textbox' class.
% {overrides, [
% {add, nitrogen_core, [
% {erl_opts, [
% {d, 'DO_ELEMENT_CLASSES'}
% ]}
% ]}
% ]}.
{shell, [
% {apps, nitrogen},
% {vm_args, "etc/vm.args"}
]}.
{plugins, [
rebar3_run,
rebar3_appup_plugin
]}.
{deps, [
{nitrogen_core, {git, "https://github.com/nitrogen/nitrogen_core", {branch, master}}},
% This next dep is for profiling
%{eep, {git, "https://github.com/virtan/eep", {branch, master}}},
sync
]}.
{profiles, [
{cowboy, [
{deps, [cowboy]}
]},
{mochiweb, [
{deps, [mochiweb]}
]},
{inets, [
{deps, [mimetypes]}
]},
{webmachine, [
{deps, [
{webmachine, {git, "https://github.com/webmachine/webmachine.git", {branch, master}}}
]}
]},
{yaws, [
{deps, [
{yaws, {git, "https://github.com/erlyaws/yaws", {ref, "fac28a9"}}}
]}
]}
]}.