gulp: use subfolders

This commit is contained in:
Ruben Müller 2014-12-06 09:14:03 +01:00
parent 2da8f82356
commit 45ff398815

View file

@ -21,7 +21,7 @@ gulp.task('server', function() {
});
gulp.task('compile', function() {
return gulp.src(['src/*.coffee'])
return gulp.src(['src/**/*.coffee'])
.pipe(sourcemaps.init())
.pipe(coffee({bare: true}))
.pipe(uglify())
@ -31,6 +31,6 @@ gulp.task('compile', function() {
});
gulp.task('default', ['server'], function() {
gulp.watch(['src/*.coffee'], ['compile']);
gulp.watch(['src/**/*.coffee'], ['compile']);
gulp.watch(['*.html', 'styles.css', 'app.js', 'images/*'], {cwd: 'public'}, reload);
});