Files
atom/build/lib/clean-output-directory.js
2016-07-26 14:51:51 +02:00

11 lines
281 B
JavaScript

const fs = require('fs-extra')
const path = require('path')
const CONFIG = require('../config')
module.exports = function () {
if (fs.existsSync(CONFIG.buildOutputPath)) {
console.log(`Cleaning ${CONFIG.buildOutputPath}...`);
fs.removeSync(CONFIG.buildOutputPath)
}
}