This functionality is now available in the far more streamlined project https://github.com/lfe-rebar3/rebar3_lfe
The LFE rebar3 clean plugin
Build ↟
$ rebar3 compile
Use ↟
Add the required plugins and provider hooks to your rebar.config
:
{plugins, [
{'lfe-compile', ".*",
{git, "https://github.com/lfe-rebar3/compile.git", {branch, "master"}}},
{'lfe-clean', ".*",
{git, "https://github.com/lfe-rebar3/clean.git", {branch, "master"}}}
]}.
{provider_hooks, [
{pre, [{compile, {lfe, compile}}]}
]}.
While the above example shows the use of the master branch, you may want to pin to a specific tag instead.
Then just call your plugin directly from your project directory:
$ rebar3 help lfe clean
The LFE rebar3 clean plugin.
Delete files not removed by 'rebar3 clean'.
This operation is destructive! It will delete files
and recursively remove the configured directories!
Usage: rebar3 lfe clean
$ rebar3 lfe clean
===> Cleaning up files and directories
~~> Removing file /home/oubiwann/lab/lfe/rebar3/ltool/rebar.lock ...
~~> Removing file /home/oubiwann/lab/lfe/rebar3/ltool/erl_crash.dump ...
~~> Removing directory /home/oubiwann/lab/lfe/rebar3/ltool/_build ...
~~> Removing directory /home/oubiwann/lab/lfe/rebar3/ltool/deps ...
~~> Removing directory /home/oubiwann/lab/lfe/rebar3/ltool/.rebar ...
~~> Removing directory /home/oubiwann/lab/lfe/rebar3/ltool/.rebar3 ...
License ↟
BSD 3-Clause License
Copyright © 2015-2019, Duncan McGreggor [email protected]