2015-10-03 11:54:09 +03:00
|
|
|
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...');
|
|
|
|
}
|
|
|
|
|
2016-05-18 22:18:06 +03:00
|
|
|
gulp.task('watch', ['build'], function () {
|
2016-06-25 13:02:27 +03:00
|
|
|
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);
|
2015-10-03 11:54:09 +03:00
|
|
|
gulp.watch([ paths.demo ], [ '', browserSync.reload ]).on('change', changed);
|
|
|
|
});
|