From 5866742dd88b89aa0d9bf9618b22e28268500703 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 21 Jun 2015 12:15:52 -0500 Subject: use bbmustache package --- rebar.config | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'rebar.config') diff --git a/rebar.config b/rebar.config index d68f195..895c78b 100644 --- a/rebar.config +++ b/rebar.config @@ -2,20 +2,12 @@ %% ex: ts=4 sw=4 ft=erlang et {deps, [ - {erlware_commons, "", - {git, "https://github.com/erlware/erlware_commons.git", - {branch, "master"}}}, - {providers, "", - {git, "https://github.com/tsloughter/providers.git", - {tag, "v1.4.0"}}}, + {erlware_commons, "0.12.0"}, + {providers, "1.4.1"}, + {getopt, "0.8.2"}, + {bbmustache, "1.0.0"}, {relx, "", {git, "https://github.com/erlware/relx.git", - {branch, "master"}}}, - {mustache, ".*", - {git, "https://github.com/soranoba/mustache.git", - {tag, "v0.3.0"}}}, - {getopt, "", - {git, "https://github.com/jcomellas/getopt.git", {branch, "master"}}}]}. {escript_name, rebar3}. @@ -41,7 +33,6 @@ {erl_opts, [debug_info]} ]}, - %% We don't want erlydtl to attempt to run on the first compile pass to bootstrap {bootstrap, []} ]}. -- cgit v1.1 From 9df51005e636bf9c0c63fe5687a221eabedeefe4 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 21 Jun 2015 16:05:47 -0500 Subject: use packages for deps and add dialyze profile --- rebar.config | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'rebar.config') diff --git a/rebar.config b/rebar.config index 895c78b..ab679dc 100644 --- a/rebar.config +++ b/rebar.config @@ -3,12 +3,10 @@ {deps, [ {erlware_commons, "0.12.0"}, - {providers, "1.4.1"}, - {getopt, "0.8.2"}, - {bbmustache, "1.0.0"}, - {relx, "", - {git, "https://github.com/erlware/relx.git", - {branch, "master"}}}]}. + {providers, "1.4.1"}, + {getopt, "0.8.2"}, + {bbmustache, "1.0.1"}, + {relx, "2.1.0"}]}. {escript_name, rebar3}. {escript_emu_args, "%%! +sbtu +A0\n"}. @@ -33,7 +31,9 @@ {erl_opts, [debug_info]} ]}, - {bootstrap, []} + {bootstrap, []}, + + {dialyze, [{erl_opts, [debug_info]}]} ]}. %% Overrides @@ -42,16 +42,23 @@ {platform_define, "^R1[4|5]", deprecated_crypto}, no_debug_info, warnings_as_errors]}, - {deps, []}, {plugins, []} + {deps, []}, {plugins, []}, + {profiles, [{dialyze, [{erl_opts, [debug_info]}]}]} ]}, - {override, mustache, [ - {erl_opts, [{platform_define, "^[0-9]+", namespaced_types}, - no_debug_info]}, - {deps, []}, {plugins, []}]}, - {override, getopt, [{erl_opts, [no_debug_info]}]}, - {override, providers, [{erl_opts, [no_debug_info]}]}, + {override, bbmustache, [ + {erl_opts, [no_debug_info, + {platform_define, "^[0-9]+", namespaced_types}]}, + {deps, []}, {plugins, []}, + {profiles, [{dialyze, [{erl_opts, [debug_info]}]}]} + ]}, + {override, getopt, [{erl_opts, [no_debug_info]}, + {profiles, [{dialyze, [{erl_opts, [debug_info]}]}]}]}, + {override, providers, [{erl_opts, [no_debug_info]}, + {profiles, [{dialyze, [{erl_opts, [debug_info]}]}]}]}, {override, relx, [{erl_opts, [{platform_define, "^[0-9]+", namespaced_types}, {platform_define, "^R1[4|5]", deprecated_crypto}, no_debug_info, - warnings_as_errors]}]} + warnings_as_errors]}, + {profiles, [{dialyze, [{erl_opts, [debug_info]}]}]} + ]} ]}. -- cgit v1.1