26 lines
688 B
JavaScript
26 lines
688 B
JavaScript
module.exports = function (grunt) {
|
|
let { defaults } = require('lodash');
|
|
|
|
let pkg = grunt.config.get('pkg');
|
|
let deepModules = grunt.config.get('deepModules');
|
|
|
|
grunt.registerTask('build:packageJson', function () {
|
|
|
|
grunt.file.write(
|
|
'build/kibana/package.json',
|
|
JSON.stringify({
|
|
name: pkg.name,
|
|
description: pkg.description,
|
|
keywords: pkg.keywords,
|
|
version: pkg.version,
|
|
build: {
|
|
number: grunt.config.get('buildNum'),
|
|
sha: grunt.config.get('buildSha')
|
|
},
|
|
repository: pkg.repository,
|
|
dependencies: defaults({}, pkg.dependencies, deepModules)
|
|
}, null, ' ')
|
|
);
|
|
});
|
|
};
|