From d9b2c4ddcbfa5094fff21156c9cbe883b4f65ec1 Mon Sep 17 00:00:00 2001 From: Clark Rasmussen Date: Wed, 19 Feb 2014 11:54:12 -0800 Subject: [PATCH] Avoid using deprecated gulp.run --- gulpfile.coffee | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) 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