kibana/tasks/build
Kim Joar Bekkelund a817517574
[6.x] Switch to Yarn (#15485) (#15955)
* Switch to Yarn (#15485)

* switch to yarn

* cleanup misc references to npm

* [yarn] loosen dependency ranges so yarn will merge more deps

* fix linting error now that moment uses ESM

* [licenses] font-awesome changed the format of its license id

* Use local yarn

* Misc fixes

* eslintignore built yarn file

* Remove mkdir which doesn't do what it should do

* Check build without upgrading lots of versions

* Fix license check

* too many moments

* Better description

* Review fixes

* Lock to angular@1.6.5

* More specific version locks

* Revert "More specific version locks"

This reverts commit 11ef81102e.

* Revert "Lock to angular@1.6.5"

This reverts commit 3ade68c14c.

* rm yarn.lock; yarn

* Forcing a specific version of React, Angular, Moment

* Using vendored version of yarn in ci

* Use --frozen-lockfile

* fixes

* Update lockfile
2018-01-10 16:54:20 +01:00
..
docker/docs [6.x] [ci] Build docs (#14868) 2017-11-14 09:16:16 -06:00
package_scripts [build] Remove user before group 2016-07-07 15:40:18 -05:00
archives.js [6.x] Upgrade to eslint 4 (#14862) (#14951) 2017-11-14 20:20:37 -07:00
babel_cache.js [eslint] reenable no-extra-semi and quotes rules (#9473) 2016-12-13 18:17:47 -07:00
data.js [eslint] reenable no-extra-semi and quotes rules (#9473) 2016-12-13 18:17:47 -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] Switch to Yarn (#15485) (#15955) 2018-01-10 16:54:20 +01:00
install_dependencies.js [6.x] Switch to Yarn (#15485) (#15955) 2018-01-10 16:54:20 +01:00
installed_plugins.js [folder structure] plugins/.data -> data 2016-07-05 14:06:16 -05: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 [eslint] enable object-curly-spacing and no-global-assign (#9486) 2016-12-14 13:29:32 -07:00
package_json.js Include missing branch variable in built package.json (#12288) 2017-06-12 17:11:47 -04:00
pleaserun.js Revert update pleaserun (#11304) 2017-04-18 10:21:05 -05:00
readme.js [eslint] enable no undef (#10825) 2017-03-22 07:08:23 -07:00
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
verify_translations.js [6.x] [optimizer] extract plugin discovery (#14745) (#15443) 2017-12-05 19:40:24 -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')));
  });

};