Removing the need for gulp-watch
This commit is contained in:
parent
6e3470d5c7
commit
371e4adc29
@ -32,11 +32,11 @@ gulp.task('docs:files', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('server', ['build'], function() {
|
gulp.task('server', ['build'], function() {
|
||||||
var connect = require('gulp-connect'),
|
var connect = require('gulp-connect');
|
||||||
watch = require('gulp-watch');
|
|
||||||
|
|
||||||
watch(config.buildPath('**/*'), { name: 'Server' })
|
gulp.watch(config.buildPath('**/*'), function(file) {
|
||||||
.pipe(connect.reload());
|
return gulp.src(file.path).pipe(connect.reload());
|
||||||
|
});
|
||||||
|
|
||||||
return connect.server({
|
return connect.server({
|
||||||
root: config.buildRoot,
|
root: config.buildRoot,
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
"gulp-notify": "^2.0.1",
|
"gulp-notify": "^2.0.1",
|
||||||
"gulp-plumber": "^1.0.0",
|
"gulp-plumber": "^1.0.0",
|
||||||
"gulp-tap": "^0.1.3",
|
"gulp-tap": "^0.1.3",
|
||||||
"gulp-watch": "^4.2.4",
|
|
||||||
"gulp-wrap": "^0.11.0",
|
"gulp-wrap": "^0.11.0",
|
||||||
"karma": "^0.12.31",
|
"karma": "^0.12.31",
|
||||||
"karma-browserify": "^1.0.1",
|
"karma-browserify": "^1.0.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user