* [codeshift] add proper ignore comments * [codeshift] apply require-to-import transform * [codeshift/fixup] remove duplicate imports * [eslint] upgrade config for react "unused" support * [codeshift] apply remove-unused-imports transform * [codeshift] apply remove-unused-basic-requires transform * [codeshift] apply remove-unused-function-arguments transform * [lintroller] fix argument list spacing * [codeshift] apply remove-unused-basic-bars transform * [codeshift/fixup] fixup unused basic var removals * manually apply remove-unused-assignments transform * [codeshift] reapply remove-unused-imports transform * [codeshift] reapply remove-unused-function-arguments transform * [eslint] autofix param spacing * manually fix remaining no-undef errors * use more descriptive file ignore pattern * add eslint-plugin-react peerDependency * replace values that looked unused in tests * remove // kibana-jscodeshift-no-babel comment * remove import statements from code required by api tests * Remove '// kibana-jscodeshift-ignore' comments * address review feedback * remove remnant of removed if condition
11 lines
369 B
JavaScript
11 lines
369 B
JavaScript
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')));
|
|
});
|
|
|
|
};
|