mirror of
https://github.com/elastic/kibana.git
synced 2025-04-21 00:13:52 -04:00
---------
**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
17 lines
520 B
JavaScript
17 lines
520 B
JavaScript
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')));
|
|
});
|
|
|
|
};
|