diff options
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r-- | gulpfile.babel.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 95b026f66..ad8adda2e 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js | |||
@@ -3,10 +3,10 @@ import gulp from 'gulp'; | |||
3 | import babel from 'gulp-babel'; | 3 | import babel from 'gulp-babel'; |
4 | import sass from 'gulp-sass'; | 4 | import sass from 'gulp-sass'; |
5 | import server from 'gulp-server-livereload'; | 5 | import server from 'gulp-server-livereload'; |
6 | import del from 'del'; | ||
7 | import { exec } from 'child_process'; | 6 | import { exec } from 'child_process'; |
8 | import dotenv from 'dotenv'; | 7 | import dotenv from 'dotenv'; |
9 | import sassVariables from 'gulp-sass-variables'; | 8 | import sassVariables from 'gulp-sass-variables'; |
9 | import { removeSync } from 'fs-extra'; | ||
10 | 10 | ||
11 | import config from './package.json'; | 11 | import config from './package.json'; |
12 | 12 | ||
@@ -49,7 +49,12 @@ function _shell(cmd, cb) { | |||
49 | }); | 49 | }); |
50 | } | 50 | } |
51 | 51 | ||
52 | const clean = () => del([paths.tmp, paths.dest]); | 52 | const clean = (done) => { |
53 | removeSync(paths.tmp); | ||
54 | removeSync(paths.dest); | ||
55 | |||
56 | done(); | ||
57 | }; | ||
53 | export { clean }; | 58 | export { clean }; |
54 | 59 | ||
55 | export function mvSrc() { | 60 | export function mvSrc() { |