diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-11-15 12:21:08 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2018-11-15 12:21:08 +0100 |
commit | 9fc81acc0eaf1acf14233e90041f838f528632d0 (patch) | |
tree | 2395a138dcfd6d7b86b4d87ceee8e4a7ee42a92b | |
parent | Update .babelrc (diff) | |
download | ferdium-app-9fc81acc0eaf1acf14233e90041f838f528632d0.tar.gz ferdium-app-9fc81acc0eaf1acf14233e90041f838f528632d0.tar.zst ferdium-app-9fc81acc0eaf1acf14233e90041f838f528632d0.zip |
Cleanup
-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() { |