code: function watch() {
    gulp.watch([appSrc + '/app/**/*.ts', '!' + appSrc + '/app/**/*.spec.ts']).on('change', function (path) {
      console.log('TypeScript file ' + path + ' has been changed. Compiling.');
      gulp.series(inlineTemplate, transpile, updateWatchDist)();
    });
    gulp.watch([appSrc + '/app/**/*.less', appSrc + '/assets/**/*.less']).on('change', function (path) {
      console.log(path + ' has been changed. Updating.');
      gulp.series(() => transpileMinifyLESS(path), updateWatchDist)();
    });
    gulp.watch([appSrc + '/app/**/*.html']).on('change', function (path) {
      console.log(path + ' has been changed. Updating.');
      gulp.series(inlineTemplate, transpile, updateWatchDist)();
    });
  }
docs: Watch
   Watch source