UNPKG

654 BJavaScriptView Raw
1#!/usr/bin/env node
2/**
3 * 清除编译目录
4 */
5const shelljs = require('shelljs');
6const path = require('path');
7const Utils = require('../lib/utils')
8const project_dir = path.resolve(__dirname, '../../../../');
9
10function getDir(target) {
11 return Utils.getDir(project_dir, target);
12}
13
14shelljs.rm('-rf', getDir('./modules'));
15shelljs.rm('-rf', getDir('./lib'));
16shelljs.rm('-rf', getDir('./video'));
17shelljs.rm('-rf', getDir('./image'));
18shelljs.rm('-rf', getDir('./res'));
19shelljs.rm('-rf', getDir('./config.xml'));
20shelljs.rm('-rf', getDir('./report.html'));
21shelljs.rm('-rf', getDir('./lock.txt'));
22shelljs.rm('-rf', getDir('./.mole-tools-tmp'));
23