Skip to content

Instantly share code, notes, and snippets.

@ppcano
Created April 12, 2014 16:03
Show Gist options
  • Select an option

  • Save ppcano/10543155 to your computer and use it in GitHub Desktop.

Select an option

Save ppcano/10543155 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
var exec = require('child_process').exec,
rmdir = require('rimraf'),
outputPath = 'public';
rmdir(outputPath, function(error){
if ( !error ) {
exec('broccoli build '+outputPath, function(err,out) {
console.log(err || 'Finished broccoli build');
});
} else {
console.log(err);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment