2015-06-04 18:44:08 +02:00
|
|
|
var gulp = require('gulp');
|
|
|
|
var path = require('path');
|
|
|
|
var config = require('../config');
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Watch - Watch files, trigger tasks when they are modified
|
|
|
|
*/
|
|
|
|
gulp.task('watch', ['build'], function () {
|
|
|
|
config.apps.forEach(function(app) {
|
2016-02-24 11:44:14 +01:00
|
|
|
gulp.watch(path.join('./client/src/**/*.scss'), ['styles:sass']);
|
2015-06-04 18:44:08 +02:00
|
|
|
gulp.watch(path.join(app.sourceFiles, '*/scss/**'), ['styles:sass']);
|
|
|
|
gulp.watch(path.join(app.sourceFiles, '*/css/**'), ['styles:css']);
|
|
|
|
gulp.watch(path.join(app.sourceFiles, '*/js/**'), ['scripts']);
|
|
|
|
gulp.watch(path.join(app.sourceFiles, '*/images/**'), ['images']);
|
|
|
|
gulp.watch(path.join(app.sourceFiles, '*/fonts/**'), ['fonts']);
|
|
|
|
});
|
|
|
|
});
|