From 768951123bdf1d818e4085f62f07ccbc1e4e23de Mon Sep 17 00:00:00 2001 From: Sherwin Techico Date: Sun, 9 Feb 2014 18:38:20 +0800 Subject: [PATCH 1/2] Fixes errors with "nom install" as there is "no compatible version found" with "~3.4.1." --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 9158c6e24295ab86ab0b453d911a2dc83c25c4e2 Mon Sep 17 00:00:00 2001 From: Sherwin Techico Date: Sun, 9 Feb 2014 18:44:01 +0800 Subject: [PATCH 2/2] This fixes this error: "gulp.run() has been deprecated." --- gulpfile.coffee | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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