[grunt] use grunt_esvm to start es

This commit is contained in:
Spencer Alger 2014-10-22 06:03:27 -07:00
parent 6f857658c6
commit c21c5c3747
4 changed files with 31 additions and 13 deletions

View file

@ -1,6 +0,0 @@
{
"defaults": {
"version": "^1.4",
"plugins": ["elasticsearch/marvel/latest", "mobz/elasticsearch-head"]
}
}

View file

@ -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
View file

@ -0,0 +1,12 @@
module.exports = function (grunt) {
return {
options: {
version: '^1.4',
plugins: [
'elasticsearch/marvel/latest',
'mobz/elasticsearch-head'
]
},
dev: {}
};
};

View file

@ -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);
});
};