UNPKG

universal-web-template

Version:

An universal web proejct template - let you quickly set up a project using Handlebars, sass and ReactJS for front-end templating. It can be adopted with most modern CMS.

22 lines (15 loc) 417 B
/* jshint node: true */ /* watch:scripts Task Watch changes of javascript files */ 'use strict'; module.exports = function() { var gulp = this.gulp, runSequence = this.opts.runSequence; return this.opts.watch([ this.opts.path.join(this.opts.config.source.scripts, '**/*.js') ], function(){ runSequence('compile:scripts', ['serve:reload', 'build:scripts'], 'integrate:scripts'); }); };