Example #1
0
gulp.task('watch', ['all-minus-bundle'], function() {
  gulp.watch('./src/client/**/*.scss', ['style']);
  gulp.watch('./src/client/**/*.svg', ['icons']);
  gulp.watch(['./src/common/**/*.ts', './src/client/**/*.{ts,tsx}', './assets/icons/**'], function() {
    runSequence('client:tsc', ['client:test', 'common:test']);
  });
  gulp.watch(['./src/common/**/*.ts', './src/server/**'], ['server:tsc']);
  laborer.clientPackWatch()
});
Example #2
0
gulp.task('watch', ['all-bundle'], function() {
  watch('./src/client/**/*.scss', function() {
    gulp.start('style');
  });

  watch('./src/client/**/*.svg', function() {
    gulp.start('icons');
  });

  watch(['./src/common/**/*.ts', './src/client/**/*.{ts,tsx}', './assets/icons/**'], function() {
    runSequence('client:tsc');
  });

  watch(['./src/common/**/*.ts', './src/server/**'], function() {
    gulp.start('server:tsc');
  });

  laborer.clientPackWatch({ showStats: true })
});