* 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
19 lines
491 B
JavaScript
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'),
|
|
};
|