Files
elasticsearch-js/grunt/config/compress.js
Spencer 7c1573fb07 Use standard and prettier (#10)
* switch from custom eslint config to standard + prettier

* fix new standard eslint violations

* add editorconfig file

* auto-fix all other violations

* update lint yarn script

* remove jshint comment
2019-07-09 13:24:13 -07:00

19 lines
491 B
JavaScript

// make it dry
function archive(out) {
return {
cwd: '<%= distDir %>',
src: 'elasticsearch-js/*',
expand: true,
options: {
archive: '<%= distDir %>/archives/' + out,
},
};
}
module.exports = {
master_zip: archive('elasticsearch-js-master.zip'),
master_tarball: archive('elasticsearch-js-master.tar.gz'),
release_zip: archive('elasticsearch-js-<%= package.version %>.zip'),
release_tarball: archive('elasticsearch-js-<%= package.version %>.tar.gz'),
};