2015-08-14 06:16:54 +02:00
|
|
|
module.exports = function (grunt) {
|
2015-08-14 22:27:41 +02:00
|
|
|
grunt.registerTask('_build:readme', function () {
|
2016-07-21 20:44:47 +02:00
|
|
|
function transformReadme(readme) {
|
|
|
|
return readme.replace(/\s##\sSnapshot\sBuilds[\s\S]*/, '');
|
|
|
|
}
|
2015-08-14 06:16:54 +02:00
|
|
|
|
2016-07-21 20:44:47 +02:00
|
|
|
grunt.file.copy('LICENSE.md', 'build/kibana/LICENSE.txt');
|
|
|
|
grunt.file.write('build/kibana/README.txt', transformReadme(grunt.file.read('README.md')));
|
2015-08-14 06:16:54 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
};
|