From 371e4adc2904fa3f79336b3da9a2497b3975fd2f Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sat, 31 Oct 2015 09:32:34 -0400 Subject: [PATCH] Removing the need for gulp-watch --- gulpfile.js | 8 ++++---- package.json | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index baf5b8a..8c1c795 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -32,11 +32,11 @@ gulp.task('docs:files', function() { }); gulp.task('server', ['build'], function() { - var connect = require('gulp-connect'), - watch = require('gulp-watch'); + var connect = require('gulp-connect'); - watch(config.buildPath('**/*'), { name: 'Server' }) - .pipe(connect.reload()); + gulp.watch(config.buildPath('**/*'), function(file) { + return gulp.src(file.path).pipe(connect.reload()); + }); return connect.server({ root: config.buildRoot, diff --git a/package.json b/package.json index 4ea7a3a..5cfe365 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "gulp-notify": "^2.0.1", "gulp-plumber": "^1.0.0", "gulp-tap": "^0.1.3", - "gulp-watch": "^4.2.4", "gulp-wrap": "^0.11.0", "karma": "^0.12.31", "karma-browserify": "^1.0.1",