remove gulp 'serve-and-watch' ( never used) and replace it with a more useful 'build-and-serve'

This commit is contained in:
Jay Traband 2015-10-16 09:09:44 -07:00 committed by Naomi Black
parent b5c11ca10a
commit 680c9740f2
1 changed files with 9 additions and 2 deletions

View File

@ -74,9 +74,16 @@ gulp.task('serve-and-sync', ['build-docs'], function (cb) {
});
gulp.task('serve-and-watch', function (cb) {
gulp.task('build-and-serve', ['build-docs'], function (cb) {
execCommands(['npm run harp -- server .'], {}, cb);
devGuideExamplesWatch(_devguideShredOptions);
var browserSync = require('browser-sync').create();
browserSync.init({
proxy: 'localhost:9000',
files: ["public/docs/**/*/**/*" ],
logFileChanges: true,
reloadDelay: 500
});
});
gulp.task('build-docs', ['_shred-devguide-examples', 'build-api-docs'], function() {