From 939158fbccd457570290e495810c840fa1bb7908 Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Wed, 10 Oct 2018 14:24:05 -0300 Subject: [PATCH] Agrego tarea para elminar archivos post install --- gulpfile.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index f08d1ed..4a3f2a9 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', @@ -39,6 +40,8 @@ gulp.task('uglify', ['templates'], function() { 'tmp/views.js' ]), concat('foca-modal-vendedores.js'), + replace('src/views/', ''), + replace("'ngRoute'", ''), gulp.dest(paths.tmp), rename('foca-modal-vendedores.min.js'), uglify(), @@ -66,4 +69,10 @@ gulp.task('webserver', function() { ] }); -gulp.task('default', ['webserver']); \ No newline at end of file +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