Files
elasticsearch-js/grunt/browser_clients_release.js

20 lines
487 B
JavaScript

module.exports = function (grunt) {
grunt.registerTask('browser_clients_release', [
'prompt:confirm_release',
'check_for_confirmation',
'browser_clients_build',
'compress:dist_zip',
'compress:dist_tarball',
's3:release'
]);
grunt.registerTask('check_for_confirmation', function () {
if (grunt.config.get('confirm.release')) {
grunt.log.verbose.writeln('release confirmed');
} else {
throw new Error('Aborting release');
}
});
};