1.0.1 • Published 10 years ago

clear-broccoli-build-target v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

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()
1.0.1

10 years ago

1.0.0

10 years ago