kibana/tasks/build
Jonathan Budzenski e1b677ac9f [build] Add notice file (#10344)
* [build] Add notice file

* [build] Include license text if available

* [build] Look for both license and notice files

* [build] Add node license to notice

* [build] Add a base notice file including info on committed dependencies

* Bump license copyright year

* [build] Kibana at top of notice
2017-02-16 11:41:09 -05:00
..
notice [build] Add notice file (#10344) 2017-02-16 11:41:09 -05:00
package_scripts [build] Remove user before group 2016-07-07 15:40:18 -05:00
archives.js [eslint] reenable no-extra-semi and quotes rules (#9473) 2016-12-13 18:17:47 -07:00
babel_cache.js [eslint] reenable no-extra-semi and quotes rules (#9473) 2016-12-13 18:17:47 -07:00
babel_options.js babel 6 upgrade (#9702) 2017-02-09 14:48:55 -07:00
data.js [eslint] reenable no-extra-semi and quotes rules (#9473) 2016-12-13 18:17:47 -07:00
download_node_builds.js [eslint] enable object-curly-spacing and no-global-assign (#9486) 2016-12-14 13:29:32 -07:00
index.js [build] Add notice file (#10344) 2017-02-16 11:41:09 -05:00
install_npm_deps.js [eslint] re-enable no-var and prefer-const (#9455) 2016-12-13 10:44:27 -07:00
installed_plugins.js
notice.js [build] Add notice file (#10344) 2017-02-16 11:41:09 -05:00
os_packages.js Use x86_64 in build name instead of x64 2016-07-20 10:37:01 -04: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 [eslint] re-enable no-var and prefer-const (#9455) 2016-12-13 10:44:27 -07:00
pleaserun.js
readme.js [eslint] re-enable no-var and prefer-const (#9455) 2016-12-13 10:44:27 -07:00
remove_pkg_json_deps.js
shasums.js [eslint] re-enable no-var and prefer-const (#9455) 2016-12-13 10:44:27 -07:00
verify_translations.js babel 6 upgrade (#9702) 2017-02-09 14:48:55 -07:00
versioned_links.js [eslint] re-enable no-var and prefer-const (#9455) 2016-12-13 10:44:27 -07:00

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

};