mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 00:45:43 -04:00
* [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 |
||
---|---|---|
.. | ||
notice | ||
package_scripts | ||
archives.js | ||
babel_cache.js | ||
babel_options.js | ||
data.js | ||
download_node_builds.js | ||
index.js | ||
install_npm_deps.js | ||
installed_plugins.js | ||
notice.js | ||
os_packages.js | ||
os_shell_scripts.js | ||
package_json.js | ||
pleaserun.js | ||
readme.js | ||
remove_pkg_json_deps.js | ||
shasums.js | ||
versioned_links.js |
let marked = require('marked'); let Promise = require('bluebird'); let { join } = require('path'); let _ = require('lodash'); let 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'))); }); };