kibana/tasks/build
Spencer acd74a2b6b
[6.x] Condense build task (#16687) (#16689)
* [build] don't copy unwanted files

* [build] condense mkdir/touch tasks

* [i18n] verifyTranslations task has nothing to do with the build, just run in tests
2018-02-12 17:46:12 -07:00
..
docker/docs [6.x] [ci] Build docs (#14868) 2017-11-14 09:16:16 -06:00
package_scripts
archives.js [6.x] Upgrade to eslint 4 (#14862) (#14951) 2017-11-14 20:20:37 -07:00
create_empty_dirs_and_files.js [6.x] Condense build task (#16687) (#16689) 2018-02-12 17:46:12 -07:00
docker_docs.js [6.x] [ci] Build docs (#14868) 2017-11-14 09:16:16 -06:00
download_node_builds.js [6.x] Upgrade to eslint 4 (#14862) (#14951) 2017-11-14 20:20:37 -07:00
index.js [6.x] Condense build task (#16687) (#16689) 2018-02-12 17:46:12 -07:00
install_dependencies.js Use execFile instead of exec when installing deps in build (#16587) (#16589) 2018-02-08 09:00:57 +01:00
notice.js Remove use of npm ls in grunt tasks (#11965) 2017-05-24 08:34:55 -07:00
os_packages.js [6.x] Upgrade to eslint 4 (#14862) (#14951) 2017-11-14 20:20:37 -07:00
os_shell_scripts.js
package_json.js Rename @elastic/kbn-build to @kbn/build (#16507) (#16508) 2018-02-03 13:39:40 +01:00
packages.js Rename @elastic/kbn-build to @kbn/build (#16507) (#16508) 2018-02-03 13:39:40 +01:00
pleaserun.js Revert update pleaserun (#11304) 2017-04-18 10:21:05 -05:00
readme.js
remove_pkg_json_deps.js [6.x] Switch to Yarn (#15485) (#15955) 2018-01-10 16:54:20 +01:00
shasums.js [6.x] Upgrade to eslint 4 (#14862) (#14951) 2017-11-14 20:20:37 -07:00
versioned_links.js [6.x] Upgrade to eslint 4 (#14862) (#14951) 2017-11-14 20:20:37 -07:00

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')));
  });

};