1.0.2 • Published 9 years ago

gulp-autowatch v1.0.2

Weekly downloads
5
License
-
Repository
github
Last release
9 years ago

gulp-autowatch NPM version Dependency Status

Information

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);
});