Browse Source

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

pull/20/head
Tristan Sloughter 10 years ago
parent
commit
ddee7ec046
2 changed files with 5 additions and 3 deletions
  1. +1
    -2
      priv/templates/plugin.erl.dtl
  2. +4
    -1
      rebar.config

+ 1
- 2
priv/templates/plugin.erl.dtl View File

@ -19,7 +19,7 @@ init(State) ->
{bare, true}, % The task can be run by the user, always true
{deps, ?DEPS}, % The list of dependencies
{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}}"},
{desc, ""}
]),
@ -33,4 +33,3 @@ do(State) ->
-spec format_error(any()) -> iolist().
format_error(Reason, State) ->
io_lib:format("~p", [Reason]).

+ 4
- 1
rebar.config View File

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

Loading…
Cancel
Save