diff --git a/gulpfile.coffee b/gulpfile.coffee index 2f8cef5..cebe31d 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -55,17 +55,12 @@ gulp.task 'html', -> gulp.src('*.html') .pipe(refresh server) -# The default task -gulp.task 'default', -> - gulp.run 'webserver', 'livereload', 'scripts', 'styles' - - # Watches files for changes - gulp.watch 'scripts/coffee/**', -> - gulp.run 'scripts' +# Watches files for changes +gulp.task 'watch', -> + gulp.watch 'scripts/coffee/**', ['scripts'] + gulp.watch 'styles/scss/**', ['styles'] + gulp.watch '*.html', ['html'] - gulp.watch 'styles/scss/**', -> - gulp.run 'styles' +# The default task +gulp.task 'default', ['webserver', 'livereload', 'scripts', 'styles', 'watch'] - gulp.watch '*.html', -> - gulp.run 'html' - \ No newline at end of file