@molejs/mole-tools
Version:
Configuration and scripts for Mole App.
24 lines (20 loc) • 654 B
JavaScript
/**
* 清除编译目录
*/
const shelljs = require('shelljs');
const path = require('path');
const Utils = require('../lib/utils')
const project_dir = path.resolve(__dirname, '../../../../');
function getDir(target) {
return Utils.getDir(project_dir, target);
}
shelljs.rm('-rf', getDir('./modules'));
shelljs.rm('-rf', getDir('./lib'));
shelljs.rm('-rf', getDir('./video'));
shelljs.rm('-rf', getDir('./image'));
shelljs.rm('-rf', getDir('./res'));
shelljs.rm('-rf', getDir('./config.xml'));
shelljs.rm('-rf', getDir('./report.html'));
shelljs.rm('-rf', getDir('./lock.txt'));
shelljs.rm('-rf', getDir('./.mole-tools-tmp'));