Open 0101adm opened 9 years ago
strange, test:auto
use the same watch task than serve
. Don't you have gulp.watch(path.join(conf.paths.src, '/app/**/*.jade'), ['markups']);
in your gulp/watch.js
file?
here is my watch.js
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var browserSync = require('browser-sync');
function isOnlyChange(event) {
return event.type === 'changed';
}
gulp.task('watch', ['scripts:watch', 'markups', 'inject'], function () {
gulp.watch([path.join(conf.paths.src, '/*.html'), 'bower.json'], ['inject']);
gulp.watch([
path.join(conf.paths.src, '/app/**/*.css'),
path.join(conf.paths.src, '/app/**/*.scss')
], function(event) {
if(isOnlyChange(event)) {
gulp.start('styles');
} else {
gulp.start('inject');
}
});
gulp.watch(path.join(conf.paths.src, '/app/**/*.jade'), ['markups']);
gulp.watch(path.join(conf.paths.src, '/app/**/*.html'), function(event) {
browserSync.reload(event.path);
});
});
just confirmed... when i re-save jade templates, tests do not re-run.
if i edit spec files, and save, the tests WILL re-run.
jade templates are not re-processed on save while
gulp test:auto
is watching.gulp test
works fine.