2014-08-26 02:55:32 +02:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
var config = {
|
|
|
|
|
|
|
|
kibana_src: {
|
|
|
|
expand: true,
|
|
|
|
cwd: '<%= app %>',
|
|
|
|
src: '**',
|
|
|
|
dest: '<%= build %>/src/'
|
|
|
|
},
|
|
|
|
|
|
|
|
server_src: {
|
2014-09-08 19:26:02 +02:00
|
|
|
files: [
|
|
|
|
{
|
|
|
|
src: '<%= src %>/server/Gemfile',
|
|
|
|
dest: '<%= build %>/kibana/Gemfile'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
src: '<%= src %>/server/Gemfile.lock',
|
|
|
|
dest: '<%= build %>/kibana/Gemfile.lock'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
src: '<%= src %>/server/bin/initialize',
|
|
|
|
dest: '<%= build %>/kibana/bin/initialize'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
expand: true,
|
|
|
|
cwd: '<%= src %>/server/config/',
|
|
|
|
src: '**',
|
|
|
|
dest: '<%= build %>/kibana/config'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
expand: true,
|
|
|
|
cwd: '<%= src %>/server/lib/',
|
|
|
|
src: '**',
|
|
|
|
dest: '<%= build %>/kibana/lib'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
expand: true,
|
|
|
|
cwd: '<%= src %>/server/routes/',
|
|
|
|
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',
|
|
|
|
dest: '<%= build %>/dist/lib/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
expand: true,
|
|
|
|
cwd: '<%= src %>/server/config/',
|
|
|
|
src: 'kibana.yml',
|
|
|
|
dest: '<%= build %>/dist/config/'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
return config;
|
|
|
|
};
|