gulp: use subfolders
This commit is contained in:
parent
2da8f82356
commit
45ff398815
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue