1'use strict' 2 3const fs = require('graceful-fs').promises 4const log = require('./log') 5 6async function clean (gyp, argv) { 7 // Remove the 'build' dir 8 const buildDir = 'build' 9 10 log.verbose('clean', 'removing "%s" directory', buildDir) 11 await fs.rm(buildDir, { recursive: true, force: true }) 12} 13 14module.exports = clean 15module.exports.usage = 'Removes any generated build files and the "out" dir' 16