aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.babel.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-11-15 12:21:08 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-11-15 12:21:08 +0100
commit9fc81acc0eaf1acf14233e90041f838f528632d0 (patch)
tree2395a138dcfd6d7b86b4d87ceee8e4a7ee42a92b /gulpfile.babel.js
parentUpdate .babelrc (diff)
downloadferdium-app-9fc81acc0eaf1acf14233e90041f838f528632d0.tar.gz
ferdium-app-9fc81acc0eaf1acf14233e90041f838f528632d0.tar.zst
ferdium-app-9fc81acc0eaf1acf14233e90041f838f528632d0.zip
Cleanup
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r--gulpfile.babel.js9
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';
3import babel from 'gulp-babel'; 3import babel from 'gulp-babel';
4import sass from 'gulp-sass'; 4import sass from 'gulp-sass';
5import server from 'gulp-server-livereload'; 5import server from 'gulp-server-livereload';
6import del from 'del';
7import { exec } from 'child_process'; 6import { exec } from 'child_process';
8import dotenv from 'dotenv'; 7import dotenv from 'dotenv';
9import sassVariables from 'gulp-sass-variables'; 8import sassVariables from 'gulp-sass-variables';
9import { removeSync } from 'fs-extra';
10 10
11import config from './package.json'; 11import config from './package.json';
12 12
@@ -49,7 +49,12 @@ function _shell(cmd, cb) {
49 }); 49 });
50} 50}
51 51
52const clean = () => del([paths.tmp, paths.dest]); 52const clean = (done) => {
53 removeSync(paths.tmp);
54 removeSync(paths.dest);
55
56 done();
57};
53export { clean }; 58export { clean };
54 59
55export function mvSrc() { 60export function mvSrc() {