Files
atom/script/lib/fast-clean-output-directory.js
2017-03-10 16:48:00 +01:00

20 lines
467 B
JavaScript

const fs = require('fs-extra')
const path = require('path')
const CONFIG = require('../config')
module.exports = function () {
let srcPaths = [
path.join('benchmarks', 'benchmark-runner.js'),
path.join('dot-atom'),
path.join('exports'),
path.join('package.json'),
path.join('static'),
path.join('src'),
path.join('vendor')
]
for (const srcPath of srcPaths) {
fs.removeSync(path.join(CONFIG.intermediateAppPath, srcPath))
}
}