diff --git a/gulpfile.coffee b/gulpfile.coffee index 2f8cef5..3ccd9e6 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -30,6 +30,9 @@ gulp.task 'webserver', -> gulp.task 'livereload', -> server.listen 35729, (err) -> console.log err if err? + gulp.watch('scripts/coffee/**/*.coffee', ['scripts']) + gulp.watch('styles/scss/init.scss', ['styles']) + gulp.watch('*.html', ['html']) # Compiles CoffeeScript files into js file # and reloads the page @@ -57,15 +60,5 @@ gulp.task 'html', -> # The default task gulp.task 'default', -> - gulp.run 'webserver', 'livereload', 'scripts', 'styles' - - # Watches files for changes - gulp.watch 'scripts/coffee/**', -> - gulp.run 'scripts' - - gulp.watch 'styles/scss/**', -> - gulp.run 'styles' - - gulp.watch '*.html', -> - gulp.run 'html' + gulp.start 'webserver', 'livereload', 'scripts', 'styles' \ No newline at end of file diff --git a/package.json b/package.json index d7fab11..9f75def 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dependencies": {}, "devDependencies": { "connect": "~2.12.0", - "gulp": "~3.4.1", + "gulp": "latest", "gulp-coffee": "~1.2.5", "gulp-concat": "~2.1.7", "gulp-livereload": "~0.2.0",