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