2014-08-26 02:55:32 +02:00
|
|
|
module.exports = function (grunt) {
|
2014-10-03 19:16:29 +02:00
|
|
|
var version = grunt.config.get('pkg.version');
|
2014-08-26 02:55:32 +02:00
|
|
|
var config = {
|
|
|
|
|
|
|
|
kibana_src: {
|
|
|
|
expand: true,
|
|
|
|
cwd: '<%= app %>',
|
|
|
|
src: '**',
|
|
|
|
dest: '<%= build %>/src/'
|
|
|
|
},
|
|
|
|
|
|
|
|
server_src: {
|
2014-09-08 19:26:02 +02:00
|
|
|
files: [
|
|
|
|
{
|
2014-10-09 00:36:35 +02:00
|
|
|
src: '<%= server %>/Gemfile',
|
2014-09-08 19:26:02 +02:00
|
|
|
dest: '<%= build %>/kibana/Gemfile'
|
|
|
|
},
|
|
|
|
{
|
2014-10-09 00:36:35 +02:00
|
|
|
src: '<%= server %>/Gemfile.lock',
|
2014-09-08 19:26:02 +02:00
|
|
|
dest: '<%= build %>/kibana/Gemfile.lock'
|
|
|
|
},
|
|
|
|
{
|
2014-10-09 00:36:35 +02:00
|
|
|
src: '<%= server %>/bin/initialize',
|
2014-09-08 19:26:02 +02:00
|
|
|
dest: '<%= build %>/kibana/bin/initialize'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
expand: true,
|
2014-10-09 00:36:35 +02:00
|
|
|
cwd: '<%= server %>/config/',
|
2014-09-08 19:26:02 +02:00
|
|
|
src: '**',
|
|
|
|
dest: '<%= build %>/kibana/config'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
expand: true,
|
2014-10-09 00:36:35 +02:00
|
|
|
cwd: '<%= server %>/lib/',
|
2014-09-08 19:26:02 +02:00
|
|
|
src: '**',
|
|
|
|
dest: '<%= build %>/kibana/lib'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
expand: true,
|
2014-10-09 00:36:35 +02:00
|
|
|
cwd: '<%= server %>/routes/',
|
2014-09-08 19:26:02 +02:00
|
|
|
src: '**',
|
|
|
|
dest: '<%= build %>/kibana/routes'
|
|
|
|
}
|
|
|
|
]
|
2014-08-26 02:55:32 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
dist: {
|
|
|
|
options: { mode: true },
|
|
|
|
files: [
|
|
|
|
{
|
|
|
|
expand: true,
|
|
|
|
cwd: '<%= build %>/kibana/',
|
|
|
|
src: '*.jar',
|
2014-09-23 16:02:34 +02:00
|
|
|
dest: '<%= build %>/dist/kibana/lib/'
|
2014-08-26 02:55:32 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
expand: true,
|
2014-10-09 00:36:35 +02:00
|
|
|
cwd: '<%= server %>/config/',
|
2014-08-26 02:55:32 +02:00
|
|
|
src: 'kibana.yml',
|
2014-09-23 16:02:34 +02:00
|
|
|
dest: '<%= build %>/dist/kibana/config/'
|
2014-08-26 02:55:32 +02:00
|
|
|
}
|
|
|
|
]
|
2014-10-03 19:16:29 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
versioned_dist: {
|
|
|
|
options: { mode: true },
|
|
|
|
files: [
|
|
|
|
{
|
|
|
|
expand: true,
|
|
|
|
cwd: '<%= build %>/dist/kibana',
|
|
|
|
src: '**',
|
|
|
|
dest: '<%= build %>/dist/kibana-' + version
|
|
|
|
}
|
|
|
|
]
|
2014-08-26 02:55:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
return config;
|
|
|
|
};
|