Commit eff4abcb619399814a3f776601b0ce0494585666

Authored by Eric
1 parent 95481f1164
Exists in master and in 1 other branch develop

correct sequence gulp

Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
... ... @@ -21,7 +21,9 @@ var paths = {
21 21 dist: 'dist/'
22 22 };
23 23  
24   -gulp.task('uglify', gulpSequence('clean', ['templates', 'uglify-spec'], 'uglify-app'));
  24 +gulp.task('uglify', function(callback) {
  25 + gulpSequence('clean', ['templates', 'uglify-spec'], 'uglify-app')(callback);
  26 +});
25 27  
26 28 gulp.task('templates', function() {
27 29 return pump(
... ... @@ -68,8 +70,7 @@ gulp.task('uglify-spec', function() {
68 70 });
69 71  
70 72 gulp.task('clean', function() {
71   - return gulp.src(['tmp', 'dist'], {read: false})
72   - .pipe(clean());
  73 + return gulp.src(['tmp', 'dist'], {read: false}).pipe(clean());
73 74 });
74 75  
75 76 gulp.task('pre-commit', function() {
... ... @@ -84,7 +85,7 @@ gulp.task('pre-commit', function() {
84 85  
85 86 gulp.start('uglify');
86 87 });
87   -
  88 +
88 89 gulp.task('webserver', function() {
89 90 pump [
90 91 connect.server({port: 3300, host: '0.0.0.0'})