Skip to content
This repository has been archived by the owner on Oct 26, 2018. It is now read-only.

Attempts to automatically remove the target directory of a `broccoli build foo` command, since the command will fail if the path already exists.

Notifications You must be signed in to change notification settings

stilist/clear-broccoli-build-target

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Attempts to automatically remove the target directory of a `broccoli build foo` command, since the command will fail if the path already exists.

Resources

Stars

Watchers

Forks

Packages

No packages published