kibana/tasks/config/watch.js

37 lines
706 B
JavaScript
Raw Normal View History

module.exports = function (grunt) {
2014-03-07 19:25:40 +01:00
var config = {
test: {
files: [
'<%= unitTestDir %>/**/*.js'
],
tasks: ['mocha:unit']
},
less: {
files: [
'<%= app %>/**/styles/**/*.less',
'<%= app %>/**/components/**/*.less'
],
tasks: ['less']
},
jade: {
files: [
'<%= unitTestDir %>/index.jade'
],
tasks: ['jade:test']
},
clientside_jade: {
files: [
'<%= testUtilsDir %>/istanbul_reporter/report.clientside.jade'
],
tasks: ['jade:clientside']
}
};
2014-03-07 19:25:40 +01:00
if (grunt.option('no-test-watcher')) {
// unset the test watcher
delete config.test;
}
return config;
};