mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
21 lines
424 B
JavaScript
21 lines
424 B
JavaScript
module.exports = function (grunt) {
|
|
var useJRuby = grunt.option('use-jruby');
|
|
var tasks = [
|
|
'less',
|
|
'jade'
|
|
];
|
|
if (useJRuby) {
|
|
tasks = tasks.concat([
|
|
'download_jruby',
|
|
'install_gems',
|
|
'run:jruby_server',
|
|
'wait_for_jruby'
|
|
]);
|
|
} else {
|
|
tasks = tasks.concat(['run:mri_server']);
|
|
}
|
|
grunt.registerTask('dev', tasks.concat([
|
|
'maybe_start_server',
|
|
'watch'
|
|
]));
|
|
};
|