mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
allow disabling of the test watcher
This commit is contained in:
parent
32aa75712b
commit
4aa5edfba3
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
module.exports = function (grunt) {
|
||||
return {
|
||||
var config = {
|
||||
test: {
|
||||
files: [
|
||||
'<%= unitTestDir %>/**/*.js'
|
||||
|
@ -26,4 +26,11 @@ module.exports = function (grunt) {
|
|||
tasks: ['jade:clientside']
|
||||
}
|
||||
};
|
||||
|
||||
if (grunt.option('no-test-watcher')) {
|
||||
// unset the test watcher
|
||||
delete config.test;
|
||||
}
|
||||
|
||||
return config;
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ module.exports = function (grunt) {
|
|||
|
||||
function onResponse(res) {
|
||||
if (res.headers.pong === 'Kibana 4 Dev Server') {
|
||||
grunt.log.write('server already started');
|
||||
grunt.log.writeln('server already started');
|
||||
} else {
|
||||
grunt.log.error('another server is already running at localhost:8000!');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue