Commit 9e01aa01235b76beab6f3b23c9ad03f739bcab72
1 parent
0d8b3c0223
Exists in
master
agrego tareas
Showing
1 changed file
with
17 additions
and
1 deletions
Show diff stats
gulpfile.js
| ... | ... | @@ -45,7 +45,7 @@ gulp.task('uglify', ['templates'], function() { |
| 45 | 45 | ); |
| 46 | 46 | }); |
| 47 | 47 | |
| 48 | -gulp.task('clean', function(){ | |
| 48 | +gulp.task('clean', function() { | |
| 49 | 49 | return gulp.src(['tmp', 'dist'], {read: false}) |
| 50 | 50 | .pipe(clean()); |
| 51 | 51 | }); |
| ... | ... | @@ -60,3 +60,19 @@ gulp.task('pre-commit', function() { |
| 60 | 60 | ] |
| 61 | 61 | ); |
| 62 | 62 | }); |
| 63 | + | |
| 64 | +gulp.task('clean-post-install', function() { | |
| 65 | + return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js', | |
| 66 | + 'index.html'], {read: false}) | |
| 67 | + .pipe(clean()); | |
| 68 | +}); | |
| 69 | + | |
| 70 | +gulp.task('compile', ['templates', 'uglify']); | |
| 71 | + | |
| 72 | +gulp.task('webserver', function() { | |
| 73 | + pump [ | |
| 74 | + connect.server({port: 3000}) | |
| 75 | + ] | |
| 76 | +}); | |
| 77 | + | |
| 78 | +gulp.task('default', ['webserver']); | |
| 63 | 79 | \ No newline at end of file |