mirror of
https://github.com/elastic/kibana.git
synced 2025-04-19 23:39:42 -04:00
Backports PR #9327
**Commit 1:**
build: remove deepModules hackery
The deepModules hacks in the build system were added to support the long
paths that resulted from npm2, but npm3 fundamentally addresses that
problem, so deepModules is no longer necessary. In practical terms, npm3
shouldn't ever cause path lengths to become so long that they trigger
path length problems on certain operating systems.
* Original sha:
|
||
---|---|---|
.. | ||
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 | ||
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'))); }); };