index.js
function(addExtraWatchers) {
  /* Watchers -------------------------------------------------------------- */
  gulp.task('watch', ['serve'], function () {
    gulp.watch(paths.src.es6, ['bundle-js:dev:clean']);
    gulp.watch(paths.src.js, ['bundle-js:dev:clean']);
    gulp.watch(paths.src.styles, ['styles']);
    gulp.watch(paths.src.views, ['tpl-reload']);
    gulp.watch(paths.out.base + '**/*', ['reload']);

    addExtraWatchers && addExtraWatchers(gulp);
  });
}
function(addExtraWatchers) {
  /* Watchers -------------------------------------------------------------- */
  gulp.task('watch', ['serve'], function () {
    gulp.watch(paths.src.es6, ['bundle-js:dev:clean']);
    gulp.watch(paths.src.js, ['bundle-js:dev:clean']);
    gulp.watch(paths.src.styles, ['styles']);
    gulp.watch(paths.src.views, ['tpl-reload']);
    gulp.watch(paths.out.base + '**/*', ['reload']);

    addExtraWatchers && addExtraWatchers(gulp);
  });
}
function ( addExtraWatchers ) { /* Watchers -------------------------------------------------------------- */ gulp . task ( 'watch' , [ 'serve' ] , function ( ) { gulp . watch ( paths . src . es6 , [ 'bundle-js:dev:clean' ] ) ; gulp . watch ( paths . src . js , [ 'bundle-js:dev:clean' ] ) ; gulp . watch ( paths . src . styles , [ 'styles' ] ) ; gulp . watch ( paths . src . views , [ 'tpl-reload' ] ) ; gulp . watch ( paths . out . base + '**/*' , [ 'reload' ] ) ; addExtraWatchers && addExtraWatchers ( gulp ) ; } ) ; }
Gladius Forge watchers setup function. It takes a list of extra watchers
to add to the process.
@param  {list<function>} extraWatchers: List of extra watchers to add.
Gladius Forge watchers setup function . It takes a list of extra watchers to add to the process .