diff --git a/gulpfile.js b/gulpfile.js index a9e81ed..879479a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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); });