From 52fcf0278d0e603f04a6b6181a61c84af1eebe5e Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 19 Sep 2014 18:54:22 -0500 Subject: add rebar providers create and plugin inclusion with providers --- rebar.config | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'rebar.config') diff --git a/rebar.config b/rebar.config index e465df1..3e2dcbb 100644 --- a/rebar.config +++ b/rebar.config @@ -5,9 +5,10 @@ %% escript_incl_extra is for internal rebar-private use only. %% Do not use outside rebar. Config interface is not stable. -{escript_incl_extra, [{"priv/templates/*", "."}]}. +{escript_incl_extra, [{"priv/templates/*", "."}, {"rebar/include/*", "."}]}. + {escript_incl_apps, - [inets, getopt, erlydtl, erlware_commons, relx]}. + [inets, getopt, erlydtl, erlware_commons, relx, rebar]}. {escript_top_level_app, rebar}. {escript_name, rebar3}. @@ -20,21 +21,6 @@ {platform_define, "^[0-9]+", namespaced_types} ]}. -{xref_checks, []}. -{xref_queries, - [{"(XC - UC) || (XU - X - B - - (\"escript\":\"foldl\"/\"3\") - - (\"eunit_test\":\"function_wrapper\"/\"2\") - - (\"abnfc\":\"file\"/\"2\") - - (\"erlydtl\":\"compile\"/\"3\") - - (\"lfe_comp\":\"file\"/\"2\") - - (\"neotoma\":\"file\"/\"2\") - - (\"protobuffs_compile\":\"scan_file\"/\"2\") - - (\"diameter_codegen\":\"from_dict\"/\"4\") - - (\"diameter_dict_util\":\"format_error\"/\"1\") - - (\"diameter_dict_util\":\"parse\"/\"2\"))", - []}]}. - {first_files, [rebar_provider]}. {deps, [{relx, "", -- cgit v1.1 From 6356112cbbb32b09dd2f94ea856c3cbd32b1c085 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 21 Sep 2014 09:19:38 -0500 Subject: more dialyzer fun. no likey opaque types --- rebar.config | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rebar.config') diff --git a/rebar.config b/rebar.config index 3e2dcbb..acb1fad 100644 --- a/rebar.config +++ b/rebar.config @@ -12,6 +12,12 @@ {escript_top_level_app, rebar}. {escript_name, rebar3}. +{erl_opts, + [{platform_define, "^[0-9]+", namespaced_types}, + {platform_define, "^R1[4|5]", deprecated_crypto}, + debug_info, + warnings_as_errors]}. + %% Types dict:dict() and digraph:digraph() have been introduced in Erlang 17. %% At the same time, their counterparts dict() and digraph() are to be %% deprecated in Erlang 18. namespaced_types option is used to select proper -- cgit v1.1 From b37a5ae611aaf6b84a046fbe716f40c2aa8c75d8 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 3 Oct 2014 06:33:33 -0500 Subject: move providers to separate app --- rebar.config | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'rebar.config') diff --git a/rebar.config b/rebar.config index acb1fad..bc593ae 100644 --- a/rebar.config +++ b/rebar.config @@ -8,7 +8,7 @@ {escript_incl_extra, [{"priv/templates/*", "."}, {"rebar/include/*", "."}]}. {escript_incl_apps, - [inets, getopt, erlydtl, erlware_commons, relx, rebar]}. + [inets, getopt, erlydtl, erlware_commons, relx, providers, rebar]}. {escript_top_level_app, rebar}. {escript_name, rebar3}. @@ -27,12 +27,13 @@ {platform_define, "^[0-9]+", namespaced_types} ]}. -{first_files, [rebar_provider]}. - -{deps, [{relx, "", +{deps, [{providers, "", + {git, "https://github.com/tsloughter/providers.git", + {branch, "master"}}}, + {relx, "", {git, "https://github.com/erlware/relx.git", {branch, "master"}}}, - {getopt, "", {git, "git@github.com:jcomellas/getopt.git", {branch, "master"}}}]}. + {getopt, "", {git, "git@github.com:jcomellas/getopt.git", {branch, "master"}}}]}. {erlydtl_opts, [{doc_root, "priv/templates"}, {compiler_options, [report, return, debug_info]}]}. -- cgit v1.1 From 9f98bdde67c3f47068eb79f4ccb59a9c3c1514b2 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 17 Oct 2014 14:03:36 -0500 Subject: switch to https for getopt so github account isn't needed --- rebar.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rebar.config') diff --git a/rebar.config b/rebar.config index bc593ae..eba50c8 100644 --- a/rebar.config +++ b/rebar.config @@ -33,7 +33,7 @@ {relx, "", {git, "https://github.com/erlware/relx.git", {branch, "master"}}}, - {getopt, "", {git, "git@github.com:jcomellas/getopt.git", {branch, "master"}}}]}. + {getopt, "", {git, "https://github.com/jcomellas/getopt.git", {branch, "master"}}}]}. {erlydtl_opts, [{doc_root, "priv/templates"}, {compiler_options, [report, return, debug_info]}]}. -- cgit v1.1 From 1dce2d36cc75263db279abd7f282772ce0f0f3e6 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Wed, 22 Oct 2014 12:03:49 -0500 Subject: add format_error/2 provider callback to providers --- rebar.config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rebar.config') diff --git a/rebar.config b/rebar.config index eba50c8..0014c3a 100644 --- a/rebar.config +++ b/rebar.config @@ -29,10 +29,10 @@ {deps, [{providers, "", {git, "https://github.com/tsloughter/providers.git", - {branch, "master"}}}, + {branch, "format_error"}}}, {relx, "", - {git, "https://github.com/erlware/relx.git", - {branch, "master"}}}, + {git, "https://github.com/tsloughter/relx.git", + {branch, "format_error2"}}}, {getopt, "", {git, "https://github.com/jcomellas/getopt.git", {branch, "master"}}}]}. {erlydtl_opts, [{doc_root, "priv/templates"}, -- cgit v1.1