Initial commit
[yaffs-website] / node_modules / node-gyp / lib / clean.js
1
2 module.exports = exports = clean
3
4 exports.usage = 'Removes any generated build files and the "out" dir'
5
6 /**
7  * Module dependencies.
8  */
9
10 var rm = require('rimraf')
11 var log = require('npmlog')
12
13
14 function clean (gyp, argv, callback) {
15
16   // Remove the 'build' dir
17   var buildDir = 'build'
18
19   log.verbose('clean', 'removing "%s" directory', buildDir)
20   rm(buildDir, callback)
21
22 }