clean.js 355 B

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