1.0.1 • Published 11 years ago
clear-broccoli-build-target v1.0.1
When building a project with Broccoli (broccoli build foo), Broccoli will
exit with an error if the target (foo) already exists. This module addresses
that minor annoyance by automatically removing the target.
More specifically, the argument immediately following build is assumed to be
the target, and will be rm -rf’d — so don’t do something foolhardy like
broccoli build ~.
Usage
In your Brocfile.js (or wherever):
var clearBuildTarget = require('clear-broccoli-build-target')
[…]
clearBuildTarget()