oss-specs/specs

View on GitHub
gulp/tasks/watch.js

Summary

Maintainability
A
0 mins
Test Coverage
// Use the gulp-help plugin which defines a default gulp task
// which lists what tasks are available.
var gulp = require('gulp-help')(require('gulp'));

var projectPaths = require('../../package.json').paths;
var serverGlobs = [].concat(projectPaths['server-js'], projectPaths['view-templates']);

gulp.task('watch:start', 'Start watching files for changes.', function(done) {
  gulp.watch(serverGlobs, ['server:restart']);
  done();
});