mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-30 20:43:42 +03:00
15 lines
610 B
JavaScript
15 lines
610 B
JavaScript
var gulp = require('gulp');
|
|
var paths = require('../paths');
|
|
var browserSync = require('browser-sync').get('bs');
|
|
|
|
function changed(event) {
|
|
console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
|
|
}
|
|
|
|
gulp.task('watch', ['build'], function () {
|
|
gulp.watch([ paths.source ], [ 'build', browserSync.reload ]).on('change', changed);
|
|
gulp.watch([ paths.html ], [ 'build', browserSync.reload]).on('change', changed);
|
|
gulp.watch([ paths.scss ], [ 'build', browserSync.reload]).on('change', changed);
|
|
gulp.watch([ paths.demo ], [ '', browserSync.reload ]).on('change', changed);
|
|
});
|