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.
22 lines
378 B
22 lines
378 B
|
|
module.exports = exports = clean |
|
|
|
exports.usage = 'Removes any generated build files and the "out" dir' |
|
|
|
/** |
|
* Module dependencies. |
|
*/ |
|
|
|
var rm = require('rimraf') |
|
var log = require('npmlog') |
|
|
|
|
|
function clean (gyp, argv, callback) { |
|
|
|
// Remove the 'build' dir |
|
var buildDir = 'build' |
|
|
|
log.verbose('clean', 'removing "%s" directory', buildDir) |
|
rm(buildDir, callback) |
|
|
|
}
|
|
|