From ef47d8e5fd5f41c96600fe7d9aad0082ab0f1cb7 Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Wed, 10 Oct 2018 16:04:35 -0300 Subject: [PATCH] agrego dependencia gulp-clean agrego tarea para eliminar archivos innecesarios --- gulpfile.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 408c563..5d52641 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', @@ -65,4 +66,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']); -- 1.9.1