mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[grunt] use grunt_esvm to start es
This commit is contained in:
parent
6f857658c6
commit
c21c5c3747
4 changed files with 31 additions and 13 deletions
6
.esvmrc
6
.esvmrc
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"defaults": {
|
||||
"version": "^1.4",
|
||||
"plugins": ["elasticsearch/marvel/latest", "mobz/elasticsearch-head"]
|
||||
}
|
||||
}
|
|
@ -19,6 +19,7 @@
|
|||
"grunt-contrib-less": "~0.10.0",
|
||||
"grunt-contrib-requirejs": "~0.4.4",
|
||||
"grunt-contrib-watch": "~0.5.3",
|
||||
"grunt-esvm": "~0.1.1",
|
||||
"grunt-mocha": "~0.4.10",
|
||||
"grunt-replace": "^0.7.9",
|
||||
"grunt-run": "^0.2.3",
|
||||
|
|
12
tasks/config/esvm.js
Normal file
12
tasks/config/esvm.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
module.exports = function (grunt) {
|
||||
return {
|
||||
options: {
|
||||
version: '^1.4',
|
||||
plugins: [
|
||||
'elasticsearch/marvel/latest',
|
||||
'mobz/elasticsearch-head'
|
||||
]
|
||||
},
|
||||
dev: {}
|
||||
};
|
||||
};
|
25
tasks/dev.js
25
tasks/dev.js
|
@ -1,9 +1,20 @@
|
|||
module.exports = function (grunt) {
|
||||
grunt.registerTask('dev', [
|
||||
'less',
|
||||
'jade',
|
||||
'ruby_server',
|
||||
'maybe_start_server',
|
||||
'watch'
|
||||
]);
|
||||
var _ = require('lodash');
|
||||
|
||||
grunt.registerTask('dev', function () {
|
||||
var tasks = [
|
||||
'less',
|
||||
'jade',
|
||||
'esvm:dev',
|
||||
'ruby_server',
|
||||
'maybe_start_server',
|
||||
'watch'
|
||||
];
|
||||
|
||||
if (grunt.option('no-es')) {
|
||||
_.pull(tasks, 'esvm:dev');
|
||||
}
|
||||
|
||||
grunt.task.run(tasks);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue