2015-08-14 06:16:54 +02:00
|
|
|
module.exports = function (grunt) {
|
2016-12-13 18:44:27 +01:00
|
|
|
const pkg = grunt.config.get('pkg');
|
2015-08-14 20:51:23 +02:00
|
|
|
|
2015-08-14 22:27:41 +02:00
|
|
|
grunt.registerTask('_build:packageJson', function () {
|
2016-05-27 22:40:57 +02:00
|
|
|
const { sha, number, version } = grunt.config.get('build');
|
2015-08-14 06:16:54 +02:00
|
|
|
|
|
|
|
grunt.file.write(
|
|
|
|
'build/kibana/package.json',
|
|
|
|
JSON.stringify({
|
|
|
|
name: pkg.name,
|
|
|
|
description: pkg.description,
|
|
|
|
keywords: pkg.keywords,
|
2016-05-27 22:40:57 +02:00
|
|
|
version,
|
2017-06-12 23:11:47 +02:00
|
|
|
branch: pkg.branch,
|
2015-08-14 06:16:54 +02:00
|
|
|
build: {
|
2016-05-27 22:40:57 +02:00
|
|
|
number,
|
|
|
|
sha
|
2015-08-14 06:16:54 +02:00
|
|
|
},
|
|
|
|
repository: pkg.repository,
|
2015-11-06 18:02:22 +01:00
|
|
|
engines: {
|
|
|
|
node: pkg.engines.node
|
|
|
|
},
|
2016-12-02 01:52:37 +01:00
|
|
|
dependencies: pkg.dependencies
|
2015-08-14 06:16:54 +02:00
|
|
|
}, null, ' ')
|
|
|
|
);
|
|
|
|
});
|
|
|
|
};
|