kibana/tasks/config/watch.js

36 lines
755 B
JavaScript
Raw Normal View History

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