Skip to content

Commit b5590a0

Browse files
authored
Update clean.mjs
1 parent 7bb4b6d commit b5590a0

File tree

1 file changed

+19
-38
lines changed

1 file changed

+19
-38
lines changed

gulp-tasks/clean.mjs

Lines changed: 19 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,23 @@
1-
/*eslint strict: ["error", "global"]*/
2-
'use strict';
1+
import { deleteAsync } from 'del';
32

4-
//=======================================================
5-
// Include Our Plugins
6-
//=======================================================
7-
var del = import {deleteAsync} from 'del';
3+
export async function styleguide() {
4+
return deleteAsync(['./dist/style-guide/*'], { force: true });
5+
}
86

9-
// Export our tasks.
10-
module.exports = {
7+
export async function css() {
8+
return deleteAsync(['./dist/css/*'], { force: true });
9+
}
1110

12-
// Clean style guide files.
13-
styleguide: function() {
14-
// You can use multiple globbing patterns as you would with `gulp.src`
15-
return del([
16-
'./dist/style-guide/*'
17-
], {force: true});
18-
},
11+
export async function js() {
12+
return deleteAsync(['./dist/js/*'], { force: true });
13+
}
1914

20-
// Clean CSS files.
21-
css: function() {
22-
return del([
23-
'./dist/css/*'
24-
], {force: true});
25-
},
26-
27-
// Clean JS files.
28-
js: function() {
29-
return del([
30-
'./dist/js/*'
31-
], {force: true});
32-
},
33-
docs: function() {
34-
return del([
35-
'./docs/style-guide/',
36-
'./docs/css/',
37-
'./docs/assets/',
38-
'./docs/all/',
39-
'./docs/js/'
40-
], {force: true});
41-
}
42-
};
15+
export async function docs() {
16+
return deleteAsync([
17+
'./docs/style-guide/',
18+
'./docs/css/',
19+
'./docs/assets/',
20+
'./docs/all/',
21+
'./docs/js/'
22+
], { force: true });
23+
}

0 commit comments

Comments
 (0)