kibana/tasks/build
Jonathan Budzenski 365096b05a
Backport PR #7855
---------

**Commit 1:**
Bump marked

* Original sha: 7cf64c75a5
* Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-07-21T18:44:47Z
* Committed by Jonathan Budzenski <jon@jbudz.me> on 2016-07-27T13:54:33Z
2016-07-27 15:12:01 -05:00
..
package_scripts Backport PR #6674 2016-06-09 10:54:48 -05:00
archives.js [build] move to absolute paths and improve fpm/pleaserun support 2015-08-14 13:27:41 -07:00
babel_cache.js Backport PR #7458 2016-06-15 15:24:51 -04:00
babelOptions.js [build] babel requires the directory containing the cache exist 2015-11-04 11:10:39 -06:00
downloadNodeBuilds.js avoid https://github.com/babel/babel-eslint/issues/245 2016-02-01 20:52:19 +00:00
getProps.js [build] move to absolute paths and improve fpm/pleaserun support 2015-08-14 13:27:41 -07:00
index.js Backport PR #7458 2016-06-15 15:24:51 -04:00
installedPlugins.js [build] move to absolute paths and improve fpm/pleaserun support 2015-08-14 13:27:41 -07:00
installNpmDeps.js [build] move to absolute paths and improve fpm/pleaserun support 2015-08-14 13:27:41 -07:00
osPackages.js Backport PR #6674 2016-06-09 10:54:48 -05:00
packageJson.js Include node engine version in build manifests 2015-11-06 12:02:22 -05:00
pleaserun.js Backport PR #6674 2016-06-09 10:54:48 -05:00
readme.js Backport PR #7855 2016-07-27 15:12:01 -05:00
removePkgJsonDeps.js Remove package.json dependencies during build 2015-09-18 14:23:24 -04:00
shasums.js Backport PR #6676 2016-05-19 11:19:02 -04:00
versionedLinks.js Copy files when making os packages 2015-12-29 23:02:22 +00:00

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

};