mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
- Fixing the *nix version to use the right script variable - Adding windows bat file - Adding an INSTALL readme
26 lines
671 B
JavaScript
26 lines
671 B
JavaScript
module.exports = function (grunt) {
|
|
var _ = require('lodash');
|
|
var archiveName = function (plugin) {
|
|
return '<%= target %>/<%= pkg.name %>-' + (plugin ? 'plugin-' : '') + '<%= pkg.version %>';
|
|
};
|
|
|
|
return _.mapValues({
|
|
build_zip: archiveName() + '.zip',
|
|
build_tarball: archiveName() + '.tar.gz',
|
|
plugin: archiveName(true) + '.tar.gz'
|
|
}, function (filename, task) {
|
|
return {
|
|
options: {
|
|
archive: filename
|
|
},
|
|
files: [
|
|
{
|
|
expand: true,
|
|
cwd: '<%= build %>/dist',
|
|
src: ['**/*'],
|
|
dest: '<%= pkg.name %>' + (task === 'plugin' ? '/_site' : '')
|
|
}
|
|
]
|
|
};
|
|
});
|
|
};
|