2014-08-28 23:40:18 +02:00
|
|
|
var gulp = require('gulp');
|
2015-07-22 04:38:46 +02:00
|
|
|
var livereload = require('gulp-livereload');
|
2014-08-28 23:40:18 +02:00
|
|
|
|
|
|
|
var paths = require('./paths.js');
|
|
|
|
|
|
|
|
require('./jshint.js');
|
|
|
|
require('./handlebars.js');
|
|
|
|
require('./less.js');
|
|
|
|
require('./copy.js');
|
2015-02-03 02:18:45 +01:00
|
|
|
require('./webpack.js');
|
2014-08-28 23:40:18 +02:00
|
|
|
|
2015-07-22 04:38:46 +02:00
|
|
|
gulp.task('watch', ['jshint', 'handlebars', 'less', 'copyHtml', 'copyContent', 'copyJs'], function () {
|
|
|
|
livereload.listen();
|
|
|
|
gulp.start('webpackWatch');
|
|
|
|
gulp.watch([paths.src.scripts, paths.src.exclude.libs], ['jshint', 'copyJs']);
|
|
|
|
gulp.watch(paths.src.templates, ['handlebars']);
|
|
|
|
gulp.watch([paths.src.less, paths.src.exclude.libs], ['less']);
|
|
|
|
gulp.watch([paths.src.html], ['copyHtml']);
|
|
|
|
gulp.watch([paths.src.content + '**/*.*', '!**/*.less'], ['copyContent']);
|
|
|
|
});
|