All Projects → gulp-community → gulp-autowatch

gulp-community / gulp-autowatch

Licence: MIT license
Sugar for reusing a paths object to watch and run gulp tasks

Programming Languages

javascript
184084 projects - #8 most used programming language

gulp-autowatch NPM version Dependency Status

Information

Packagegulp-autowatch
Description Sugar for reusing a paths object to watch and run gulp tasks
Node Version >= 0.9

Usage

Supports gulp 3.x and 4.x

var gulp = require('gulp');
var autowatch = require('gulp-autowatch');

// key = task name to run
// value = glob or array of globs to watch
var paths = {
  vendor: './client/vendor/**/*',
  coffee: './client/**/*.coffee',
  jsx: './client/**/*.jsx',
  stylus: './client/**/*.styl',
  html: './client/**/*.html',
  config: './server/config/*.json'
};

// assume all those tasks were defined

gulp.task('watch', function() {
  autowatch(gulp, paths);
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].