Ver código fonte

fix plugin module template, add merl to escript, upgrade erlydtl

pull/20/head
Tristan Sloughter 10 anos atrás
pai
commit
ddee7ec046
2 arquivos alterados com 5 adições e 3 exclusões
  1. +1
    -2
      priv/templates/plugin.erl.dtl
  2. +4
    -1
      rebar.config

+ 1
- 2
priv/templates/plugin.erl.dtl Ver arquivo

@ -19,7 +19,7 @@ init(State) ->
{bare, true}, % The task can be run by the user, always true {bare, true}, % The task can be run by the user, always true
{deps, ?DEPS}, % The list of dependencies {deps, ?DEPS}, % The list of dependencies
{example, "rebar {{name}}"}, % How to use the plugin {example, "rebar {{name}}"}, % How to use the plugin
{opts, []} % list of options understood by the plugin
{opts, []}, % list of options understood by the plugin
{short_desc, "{{desc}}"}, {short_desc, "{{desc}}"},
{desc, ""} {desc, ""}
]), ]),
@ -33,4 +33,3 @@ do(State) ->
-spec format_error(any()) -> iolist(). -spec format_error(any()) -> iolist().
format_error(Reason, State) -> format_error(Reason, State) ->
io_lib:format("~p", [Reason]). io_lib:format("~p", [Reason]).

+ 4
- 1
rebar.config Ver arquivo

@ -6,7 +6,7 @@
{escript_incl_extra, [{"priv/templates/*", "."}, {"rebar/include/*", "."}]}. {escript_incl_extra, [{"priv/templates/*", "."}, {"rebar/include/*", "."}]}.
{escript_incl_apps, {escript_incl_apps,
[getopt, erlydtl, erlware_commons, relx, providers, rebar]}.
[getopt, merl, erlydtl, erlware_commons, relx, providers, rebar]}.
{escript_top_level_app, rebar}. {escript_top_level_app, rebar}.
{escript_name, rebar3}. {escript_name, rebar3}.
@ -33,6 +33,9 @@
{providers, "", {providers, "",
{git, "https://github.com/tsloughter/providers.git", {git, "https://github.com/tsloughter/providers.git",
{branch, "format_error1"}}}, {branch, "format_error1"}}},
{erlydtl, ".*",
{git, "https://github.com/erlydtl/erlydtl.git",
{tag, "0.9.4"}}},
{relx, "", {relx, "",
{git, "https://github.com/tsloughter/relx.git", {git, "https://github.com/tsloughter/relx.git",
{branch, "format_error1"}}}, {branch, "format_error1"}}},

Carregando…
Cancelar
Salvar