From 680c9740f2e73a91f3dafdabd585fc707b08fb7c Mon Sep 17 00:00:00 2001 From: Jay Traband Date: Fri, 16 Oct 2015 09:09:44 -0700 Subject: [PATCH] remove gulp 'serve-and-watch' ( never used) and replace it with a more useful 'build-and-serve' --- gulpfile.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index a3311e42a8..6fbfc84523 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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() {