You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 line
378 B

  1. module.exports = exports = clean
  2. exports.usage = 'Removes any generated build files and the "out" dir'
  3. /**
  4. * Module dependencies.
  5. */
  6. var rm = require('rimraf')
  7. var log = require('npmlog')
  8. function clean (gyp, argv, callback) {
  9. // Remove the 'build' dir
  10. var buildDir = 'build'
  11. log.verbose('clean', 'removing "%s" directory', buildDir)
  12. rm(buildDir, callback)
  13. }