-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrebar.config
More file actions
56 lines (49 loc) · 1.28 KB
/
Copy pathrebar.config
File metadata and controls
56 lines (49 loc) · 1.28 KB
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
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
{erl_opts, [debug_info]}.
{src_dirs, ["src", "src/controllers"]}.
{shell, [{config, "./config/dev_sys.config.src"}]}.
{erlydtl_opts, [
{doc_root, "src/views"},
{recursive, true},
{libraries, [
{nova_erlydtl_inventory, nova_erlydtl_inventory}
]},
{default_libraries, [nova_erlydtl_inventory]}
]}.
{deps, [
nova,
%% Used for logging - Change if needed
{flatlog, "0.1.2"}
]}.
%% Release profiles
%% To create a release just run
%% rebar3 as prod release
{relx, [
{release, {personal_page, git}, [
personal_page,
sasl
]},
{mode, dev},
{sys_config_src, "./config/dev_sys.config.src"},
{vm_args_src, "./config/vm.args.src"}
]}.
{profiles, [
{prod, [
{relx, [
{mode, prod},
{sys_config_src, "./config/prod_sys.config.src"}
]}
]}
]}.
%% Plugins for rebar3
{plugins, [
{rebar3_erlydtl_plugin, ".*",
{git, "https://github.com/erlydtl/rebar3_erlydtl_plugin.git", {branch, "master"}}},
{rebar3_nova, ".*",
{git, "https://github.com/novaframework/rebar3_nova.git", {branch, "master"}}}
]}.
{provider_hooks, [
{pre, [{compile, {erlydtl, compile}}]}
]}.
{project_plugins, [erlfmt]}.
{erlfmt, [write]}.