Commit 00ae153a556f4687b480177de65a5c63ebfc9ff9
1 parent
d22e971b73
Exists in
master
fix gulp error en clean y uglify-spec
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
gulpfile.js
| ... | ... | @@ -11,6 +11,7 @@ const replace = require('gulp-replace'); |
| 11 | 11 | const connect = require('gulp-connect'); |
| 12 | 12 | const header = require('gulp-header'); |
| 13 | 13 | const footer = require('gulp-footer'); |
| 14 | +const gulpSequence = require('gulp-sequence'); | |
| 14 | 15 | |
| 15 | 16 | var paths = { |
| 16 | 17 | srcJS: 'src/js/*.js', |
| ... | ... | @@ -20,7 +21,9 @@ var paths = { |
| 20 | 21 | dist: 'dist/' |
| 21 | 22 | }; |
| 22 | 23 | |
| 23 | -gulp.task('templates', ['clean'], function() { | |
| 24 | +gulp.task('uglify', gulpSequence('clean', ['templates', 'uglify-spec'], 'uglify-app')); | |
| 25 | + | |
| 26 | +gulp.task('templates', function() { | |
| 24 | 27 | return pump( |
| 25 | 28 | [ |
| 26 | 29 | gulp.src(paths.srcViews), |
| ... | ... | @@ -34,7 +37,7 @@ gulp.task('templates', ['clean'], function() { |
| 34 | 37 | ); |
| 35 | 38 | }); |
| 36 | 39 | |
| 37 | -gulp.task('uglify', ['templates', 'uglify-spec'], function() { | |
| 40 | +gulp.task('uglify-app', function() { | |
| 38 | 41 | return pump( |
| 39 | 42 | [ |
| 40 | 43 | gulp.src([ |
| ... | ... | @@ -83,7 +86,7 @@ gulp.task('pre-commit', function() { |
| 83 | 86 | gulp.task('webserver', function() { |
| 84 | 87 | pump [ |
| 85 | 88 | connect.server({port: 3300, host: '0.0.0.0'}) |
| 86 | - ] | |
| 89 | + ]; | |
| 87 | 90 | }); |
| 88 | 91 | |
| 89 | 92 | gulp.task('clean-post-install', function() { |