Removing the need for gulp-watch

This commit is contained in:
Jeff Avallone 2015-10-31 09:32:34 -04:00
parent 6e3470d5c7
commit 371e4adc29
2 changed files with 4 additions and 5 deletions

View File

@ -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,

View File

@ -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",