From 96525d4933a13a7f66eefc49bc2746f2085929be Mon Sep 17 00:00:00 2001 From: Pablo Terradillos Date: Wed, 12 Mar 2014 01:40:04 -0300 Subject: [PATCH] Cleans the package folder after package generation - fix #41 --- gulpfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 7c9316f6..fc268a38 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -51,8 +51,7 @@ gulp.task('compress-dist', ['add-csp'], function() { .pipe($.zip('webogram_v' + pj.version + '.zip')) .pipe(gulp.dest('package')), gulp.src('package/*.zip') - .pipe(gulp.dest('.')), - gulp.src('package/**/*').pipe($.clean()) + .pipe(gulp.dest('.')) ); }); @@ -88,7 +87,9 @@ gulp.task('clean', function() { gulp.task('bump', ['update-version-manifests', 'update-version-settings', 'update-version-comments']); gulp.task('build', ['templates', 'usemin', 'copy']); -gulp.task('package', ['compress-dist']); +gulp.task('package', ['compress-dist'], function() { + gulp.src('package').pipe($.clean()); +}); gulp.task('default', ['clean'], function() { gulp.start('build');