Tabnine Logo For Javascript
watch
Code IndexAdd Tabnine to your IDE (free)

How to use
watch
function
in
gulp

Best JavaScript code snippets using gulp.watch(Showing top 3 results out of 3,114)

origin: spacenomads/Asteroids

series(defaultTasks, cb => {
  browserSync.init({
    server: {
      baseDir: 'public'
    },
    online: false
  });
  watch(config.watch.images, series(images, bsReload));
  watch(config.watch.vendorJS, series(vendorJS, bsReload));
  watch(config.watch.humansTXT, humansTXT);
  watch(config.watch.styles, styles);
  watch(config.watch.scripts, series(scripts, bsReload));
  watch(config.watch.templates, series(templates, bsReload));
  cb();
})
origin: kopickik/klydelearns1

function startTestServer() {
 server.init({
  notify: false,
  port,
  ui: false,
  server: {
   baseDir: 'test',
   routes: {
    '/scripts': '.tmp/scripts',
    '/node_modules': 'node_modules'
   }
  }
 });

 watch('app/scripts/**/*.js', scripts);
 watch(['test/spec/**/*.js', 'test/index.html']).on('change', server.reload);
 watch('test/spec/**/*.js', lintTest);
}
origin: kopickik/klydelearns1

function startAppServer() {
 server.init({
  notify: false,
  port,
  server: {
   baseDir: ['.tmp', 'app'],
   routes: {
    '/node_modules': 'node_modules'
   }
  }
 });

 watch([
  'app/*.html',
  'app/images/**/*',
  '.tmp/fonts/**/*'
 ]).on('change', server.reload);

 watch('app/styles/**/*.scss', styles);
 watch('app/styles/**/*.sass', styles);
 watch('app/scripts/**/*.js', scripts);
 watch('app/*.pug', views);
 watch('app/views/**/*.pug', views);
 watch('modernizr.json', modernizr);
 watch('app/fonts/**/*', fonts);
}
gulp(npm)watch

Most used gulp functions

  • Gulp.task
    Returns the wrapped registered function.
  • Gulp.src
    Emits files matching provided glob or array of globs. Returns a stream of Vinyl files that can be pi
  • Gulp.dest
    Can be piped to and it will write files. Re-emits all data passed to it so you can pipe to multiple
  • Gulp.watch
    Takes a path string, an array of path strings, a glob string or an array of glob strings as globs to
  • Gulp.start
  • Gulp.parallel,
  • Gulp.env,
  • Gulp.appMessage,
  • Gulp.hasTask,
  • Gulp.log,
  • Gulp.on,
  • Gulp.run,
  • Gulp.useref

Popular in JavaScript

  • chalk
    Terminal string styling done right
  • ms
    Tiny millisecond conversion utility
  • express
    Fast, unopinionated, minimalist web framework
  • commander
    the complete solution for node.js command-line programs
  • minimist
    parse argument options
  • yargs
    yargs the modern, pirate-themed, successor to optimist.
  • q
    A library for promises (CommonJS/Promises/A,B,D)
  • node-fetch
    A light-weight module that brings window.fetch to node.js
  • readable-stream
    Streams3, a user-land copy of the stream library from Node.js
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now