remove gulp 'serve-and-watch' ( never used) and replace it with a more useful 'build-and-serve'
This commit is contained in:
parent
b5c11ca10a
commit
680c9740f2
11
gulpfile.js
11
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);
|
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() {
|
gulp.task('build-docs', ['_shred-devguide-examples', 'build-api-docs'], function() {
|
||||||
|
|
Loading…
Reference in New Issue