-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathrebar.config
67 lines (61 loc) · 1.45 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
{erl_opts, [
debug_info
]}.
{project_plugins, [rebar3_hex, rebar3_ex_doc, erlfmt]}.
{gpb_opts, [
{i, "proto"},
{o_erl, "src"},
{o_hrl, "src"},
{verify, always},
{strings_as_binaries, true},
{maps, true},
{maps_unset_optional, omitted},
{report_warnings, true},
{target_erlang_version, 17}
]}.
{ex_doc, [
{source_url, <<"https://github.com/hexpm/hex_core">>},
{extras, [<<"README.md">>, <<"CHANGELOG.md">>]},
{main, <<"readme">>}
]}.
{hex, [{doc, #{provider => ex_doc}}]}.
{erlfmt, [
write,
{files, ["{src,test,examples}/*.{hrl,erl,app.src}", "rebar.config"]},
{exclude_files, ["src/hex_pb_*.erl", "src/hex_erl_tar.{hrl,erl}"]}
]}.
{profiles, [
{dev, [
{deps, [
{gpb, "4.21.1"}
]},
{plugins, [
{rebar3_gpb_plugin, "2.23.1"}
]},
{overrides, [
{del, rebar3_gpb_plugin, [
{deps, [gpb]}
]}
]},
{provider_hooks, [
{pre, [
{compile, {protobuf, compile}},
{clean, {protobuf, clean}}
]}
]}
]},
{test, [
{erl_opts, [nowarn_export_all]},
{ct_opts, [
{create_priv_dir, auto_per_tc},
{config, "test/ct.config"}
]},
{plugins, [
rebar3_proper
]},
{deps, [
{proper, "1.3.0"}
]},
{extra_src_dirs, ["test/support"]}
]}
]}.