build/build.js
function emptyDir(dir) {
  return new Promise((resolve, reject) => {
    FS.emptyDir(dir, err => {
      err ? reject(err) : resolve(dir);
    })
  });
}
function emptyDir(dir) {
  return new Promise((resolve, reject) => {
    FS.emptyDir(dir, err => {
      err ? reject(err) : resolve(dir);
    })
  });
}
function emptyDir ( dir ) { return new Promise ( ( resolve , reject ) => { FS . emptyDir ( dir , err => { err ? reject ( err ) : resolve ( dir ) ; } ) } ) ; }
Empty a directory
@param {String} dir
Empty a directory