Commit 939158fbccd457570290e495810c840fa1bb7908
1 parent
77d869e2f5
Exists in
master
Agrego tarea para elminar archivos post install
Showing
1 changed file
with
10 additions
and
1 deletions
 
Show diff stats
gulpfile.js
| ... | ... | @@ -8,6 +8,7 @@ const pump = require('pump'); | 
| 8 | 8 | const jshint = require('gulp-jshint'); | 
| 9 | 9 | const replace = require('gulp-replace'); | 
| 10 | 10 | const connect = require('gulp-connect'); | 
| 11 | +const clean = require('gulp-clean'); | |
| 11 | 12 | |
| 12 | 13 | var paths = { | 
| 13 | 14 | srcJS: 'src/js/*.js', | 
| ... | ... | @@ -39,6 +40,8 @@ gulp.task('uglify', ['templates'], function() { | 
| 39 | 40 | 'tmp/views.js' | 
| 40 | 41 | ]), | 
| 41 | 42 | concat('foca-modal-vendedores.js'), | 
| 43 | + replace('src/views/', ''), | |
| 44 | + replace("'ngRoute'", ''), | |
| 42 | 45 | gulp.dest(paths.tmp), | 
| 43 | 46 | rename('foca-modal-vendedores.min.js'), | 
| 44 | 47 | uglify(), | 
| ... | ... | @@ -66,4 +69,10 @@ gulp.task('webserver', function() { | 
| 66 | 69 | ] | 
| 67 | 70 | }); | 
| 68 | 71 | |
| 69 | -gulp.task('default', ['webserver']); | |
| 70 | 72 | \ No newline at end of file | 
| 73 | +gulp.task('clean-post-install', function(){ | |
| 74 | + return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js', | |
| 75 | + 'index.html'], {read: false}) | |
| 76 | + .pipe(clean()); | |
| 77 | +}); | |
| 78 | + | |
| 79 | +gulp.task('default', ['webserver']); |