mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00

In addition: * moved module.exports to the bottom * no single-line if statements * no if statements without a { * const for requires * array declarations get spaces inside [ ] * 'use strict' in all .js files PR-URL: https://github.com/nodejs/node-gyp/pull/1794 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: João Reis <reis@janeasystems.com>
15 lines
355 B
JavaScript
15 lines
355 B
JavaScript
'use strict'
|
|
|
|
const rm = require('rimraf')
|
|
const 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)
|
|
}
|
|
|
|
module.exports = clean
|
|
module.exports.usage = 'Removes any generated build files and the "out" dir'
|