forked from gotthardp/lorawan-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
80 lines (74 loc) · 3.26 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
{require_min_otp_vsn, "R19"}.
{erl_opts, [
debug_info,
%% used by erlmongo
tuple_calls,
{parse_transform, lager_transform}
]}.
{dialyzer, [
%% {warnings, [error_handling, unknown, unmatched_returns]},
{warnings, [error_handling, unknown]},
{get_warnings, true}
]}.
{deps, [
{lager, "3.6.4"},
{cowlib, {git, "https://github.com/ninenines/cowlib", {tag, "2.3.0"}}},
{cowboy, {git, "https://github.com/ninenines/cowboy", {tag, "2.4.0"}}},
{gun, {git, "https://github.com/ninenines/gun.git", {tag, "1.0.0"}}},
{jsx, "2.9.0"},
{iso8601, "1.3.1"},
{gen_smtp, "0.12.0"},
{amqp_client, "3.6.14"},
{emqttc, {git, "https://github.com/emqtt/emqttc.git", {ref, "9be166ff1c7deadb2763b5a27c1bba3c635fcee9"}}},
{erlmongo, {git, "https://github.com/SergejJurecko/erlmongo.git", {ref, "ecc2995f2b515296a7a907d2d398395bf748e6e9"}}}
]}.
{post_hooks, [
{compile, "npm install --save"},
{compile, "cp node_modules/jquery/dist/jquery.min.js priv/admin"},
{compile, "cp node_modules/ng-admin/build/ng-admin.min.js priv/admin"},
{compile, "cp node_modules/ng-admin/build/ng-admin.min.css priv/admin"},
{compile, "cp node_modules/angular-simple-logger/dist/angular-simple-logger.min.js priv/admin"},
{compile, "cp node_modules/angular-google-maps/dist/angular-google-maps.min.js priv/admin"},
{compile, "cp node_modules/angular-google-chart/ng-google-chart.min.js priv/admin"},
{compile, "cp node_modules/vis/dist/vis.min.js priv/admin"},
{compile, "cp node_modules/vis/dist/vis.min.css priv/admin"},
{compile, "cp -r node_modules/vis/dist/img priv/admin"},
{compile, "cp node_modules/angular-visjs/angular-vis.js priv/admin"},
{compile, "cp node_modules/angular-bootstrap-colorpicker/js/bootstrap-colorpicker-module.min.js priv/admin"},
{compile, "cp node_modules/angular-bootstrap-colorpicker/css/colorpicker.min.css priv/admin"},
{compile, "sh -c \"for f in priv/admin/*.js priv/admin/*.css; do gzip -c \\$f > \\$f.gz; done\""}
]}.
{artifacts, [
"priv/admin/jquery.min.js",
"priv/admin/ng-admin.min.js",
"priv/admin/ng-admin.min.css",
"priv/admin/angular-simple-logger.min.js",
"priv/admin/angular-google-maps.min.js",
"priv/admin/ng-google-chart.min.js",
"priv/admin/vis.min.js",
"priv/admin/vis.min.css",
"priv/admin/angular-vis.js",
"priv/admin/bootstrap-colorpicker-module.min.js",
"priv/admin/colorpicker.min.css"
]}.
{relx, [
{release, {'lorawan-server', "0.6.0"},
[lorawan_server]},
{sys_config, "lorawan_server.config"},
{dev_mode, false},
{include_src, false},
{include_erts, false},
{system_libs, false},
{generate_start_script, false},
{overlay, [
{copy, "scripts/dbexport", "bin/dbexport"},
{copy, "scripts/dbexport.bat", "bin/dbexport.bat"},
{copy, "scripts/dbimport", "bin/dbimport"},
{copy, "scripts/dbimport.bat", "bin/dbimport.bat"},
{template, "scripts/lorawan-server", "bin/lorawan-server"},
{copy, "scripts/lorawanctl", "bin/lorawanctl"},
{template, "scripts/lorawan-server.bat", "bin/lorawan-server.bat"},
{template, "scripts/lorawan-service.bat", "bin/lorawan-service.bat"},
{copy, "scripts/lorawan-server.service", "bin/lorawan-server.service"}
]}
]}.