1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | var combiner = require('stream-combiner2');
|
8 | var del = require('del');
|
9 |
|
10 | module.exports = function(gulp, $, conf) {
|
11 |
|
12 | gulp.task('clean:dist', function() {
|
13 | return new Promise(function(resolve, reject) {
|
14 | del(conf.parsePwd([conf.dist, '/**/*'].join('')), { force: true })
|
15 | .then(resolve)
|
16 | .catch(reject);
|
17 | });
|
18 | });
|
19 |
|
20 |
|
21 | gulp.task('clean:tmp', function() {
|
22 | return new Promise(function(resolve, reject) {
|
23 | del(conf.parsePwd([conf.tmp, '/**/*'].join('')), { force: true })
|
24 | .then(resolve)
|
25 | .catch(reject);
|
26 | });
|
27 | });
|
28 | }
|