Created
March 1, 2014 10:56
-
-
Save digilord/9288317 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('js:dev', ['clean:dev'], function() { | |
return es.concat( | |
gulp.src('app/js/**/*.coffee') | |
.pipe(coffee({base: true})), | |
gulp.src('app/js/**/*.js') | |
) | |
.pipe(concat('app.js')) | |
.pipe(gulp.dest('build/js')) | |
.pipe(watch()) | |
.pipe(reload()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could differ javascript read like this in order to get your hd less busy at the task launch.
Also, i removed the watch from the pipeline suince it doesnt make sense when merging files. There are special things to do to use gulp watch in this case, see the gulp-watch readme.