From c7cdda7830bda96669fee191b1da31d44b9b5ef3 Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Wed, 10 Oct 2018 16:32:19 -0300 Subject: [PATCH] agrego dependencia para usar gulp-clean creo tarea para borrar archivos innecesarios --- gulpfile.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 55dda1a..7358956 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -8,6 +8,7 @@ const pump = require('pump'); const jshint = require('gulp-jshint'); const replace = require('gulp-replace'); const connect = require('gulp-connect'); +const clean = require('gulp-clean'); var paths = { srcJS: 'src/js/*.js', @@ -66,4 +67,10 @@ gulp.task('webserver', function() { ] }); +gulp.task('clean-post-install', function() { + return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js', + 'index.html'], {read: false}) + .pipe(clean()); +}); + gulp.task('default', ['webserver']); \ No newline at end of file -- 1.9.1