44 lines
1.1 KiB
JavaScript
44 lines
1.1 KiB
JavaScript
var join = require('path').join;
|
|
module.exports = function (grunt) {
|
|
var build = grunt.config.get('build');
|
|
var src = grunt.config.get('src');
|
|
var app = grunt.config.get('app');
|
|
|
|
var config = {
|
|
options: {
|
|
patterns: [
|
|
{ match: 'version', replacement: '<%= pkg.version %>' },
|
|
{ match: 'buildNum', replacement: '<%= buildNum %>' },
|
|
{ match: 'commitSha', replacement: '<%= commitSha %>' }
|
|
]
|
|
},
|
|
dist: {
|
|
files: [
|
|
{
|
|
src: [join(src, 'server', 'bin', 'kibana.sh')],
|
|
dest: join(build, 'dist', 'kibana', 'bin', 'kibana'),
|
|
mode: 0755
|
|
},
|
|
{
|
|
src: [join(src, 'server', 'bin', 'kibana.bat')],
|
|
dest: join(build, 'dist', 'kibana', 'bin', 'kibana.bat')
|
|
},
|
|
{
|
|
src: [join(src, 'server', 'config', 'index.js')],
|
|
dest: join(build, 'dist', 'kibana', 'config', 'index.js')
|
|
}
|
|
]
|
|
},
|
|
build_props: {
|
|
files: [
|
|
{
|
|
src: [join(app, 'index.html')],
|
|
dest: join(build, 'src', 'index.html')
|
|
}
|
|
]
|
|
}
|
|
};
|
|
|
|
return config;
|
|
};
|