forked from novaframework/rebar3_nova
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrebar.config
More file actions
82 lines (73 loc) · 1.94 KB
/
rebar.config
File metadata and controls
82 lines (73 loc) · 1.94 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
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
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
{erl_opts, [debug_info]}.
{src_dirs, [{"src", [{recursive, true}]}]}.
{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,
kura,
%% Used for logging - Change if needed
{flatlog, "0.1.2"}
]}.
%% Release profiles
%% To create a release just run
%% rebar3 as prod release
{relx, [
{release, {{{name}}, git}, [
{{name}},
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"}
]}
]},
{test, [
{erl_opts, [nowarn_export_all, warnings_as_errors, {i, "test/util"}]},
{deps, [
{meck, "1.1.0"}
]},
{ct_opts, [{sys_config, "./config/dev_sys.config.src"}]},
{extra_src_dirs, [{"test", [{recursive, true}]}]},
{xref_extra_paths, ["test"]}
]}
]}.
{dialyzer, [{plt_apps, all_deps}]}.
%% Plugins for rebar3
{project_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"}}},
{erlfmt, "~>1.7"}
]}.
{erlfmt, [
write,
{files, [
"rebar.config",
"src/*.app.src",
"src/**/{*.erl, *.hrl}",
"test/**/{*.erl, *.hrl}"
]},
{exclude_files, ["config/vm.args.src", "config/prod_sys.config.src"]}
]}.
{xref_checks, [
undefined_function_calls,
undefined_functions,
locals_not_used,
deprecated_function_calls,
deprecated_functions
]}.