Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Latest commit

 

History

History
105 lines (72 loc) · 2.92 KB

File metadata and controls

105 lines (72 loc) · 2.92 KB

DEPRECATED / ARCHIVED

This functionality is now available in the far more streamlined project https://github.com/lfe-rebar3/rebar3_lfe

lfe-clean

Build Status LFE Versions Erlang Versions Tags Downloads

The LFE rebar3 clean plugin

Contents

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 oubiwann@gmail.com