mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
19 lines
579 B
JavaScript
19 lines
579 B
JavaScript
module.exports = function (grunt) {
|
|
grunt.registerTask('dist_package_json', function () {
|
|
var path = grunt.config.process('<%= build %>/kibana/package.json');
|
|
var pkg = grunt.config.get('pkg');
|
|
|
|
grunt.file.write(path, JSON.stringify({
|
|
name: pkg.name,
|
|
description: pkg.description,
|
|
keywords: pkg.keywords,
|
|
version: pkg.version,
|
|
build: {
|
|
number: grunt.config.get('buildNum'),
|
|
sha: grunt.config.get('commitSha')
|
|
},
|
|
repository: pkg.repository,
|
|
dependencies: pkg.dependencies
|
|
}, null, ' '));
|
|
});
|
|
};
|