Commit c7cdda7830bda96669fee191b1da31d44b9b5ef3
1 parent
e78f6a3735
Exists in
master
agrego dependencia para usar gulp-clean
creo tarea para borrar archivos innecesarios
Showing
1 changed file
with
7 additions
and
0 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', |
... | ... | @@ -66,4 +67,10 @@ gulp.task('webserver', function() { |
66 | 67 | ] |
67 | 68 | }); |
68 | 69 | |
70 | +gulp.task('clean-post-install', function() { | |
71 | + return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js', | |
72 | + 'index.html'], {read: false}) | |
73 | + .pipe(clean()); | |
74 | +}); | |
75 | + | |
69 | 76 | gulp.task('default', ['webserver']); |
70 | 77 | \ No newline at end of file |