"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/node-gyp/lib/clean.js" (11 Apr 2017, 378 Bytes) of package /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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 }