* [eslint] enable no-var and autofix * [eslint] enable prefer-const and autofix * [eslint] fix autofix-incompatible no-var and prefer-const violations
17 lines
530 B
JavaScript
17 lines
530 B
JavaScript
const marked = require('marked');
|
|
const Promise = require('bluebird');
|
|
const { join } = require('path');
|
|
const _ = require('lodash');
|
|
const fs = require('fs');
|
|
|
|
module.exports = function (grunt) {
|
|
grunt.registerTask('_build:readme', function () {
|
|
function transformReadme(readme) {
|
|
return readme.replace(/\s##\sSnapshot\sBuilds[\s\S]*/, '');
|
|
}
|
|
|
|
grunt.file.copy('LICENSE.md', 'build/kibana/LICENSE.txt');
|
|
grunt.file.write('build/kibana/README.txt', transformReadme(grunt.file.read('README.md')));
|
|
});
|
|
|
|
};
|