grunt-hotbox-deploy
Version:
Grunt task for deploying front-end bundles to Hotbox
28 lines (24 loc) • 653 B
JavaScript
var path = require('path');
module.exports = function(grunt, task, options) {
var PROD_PATH = options.prodDest;
grunt.config.set('aws_s3.hotbox_deploy_to_prod', {
options: {
accessKeyId: options.AccessKeyId,
secretAccessKey: options.SecretKey,
copyConcurrency: 25,
bucket: options.bucket,
endpoint: options.endpoint,
differential: true,
debug: options.debug,
params: {
CacheControl: "max-age=0, no-cache, no-store, must-revalidate"
}
},
files: [{
action: 'copy',
src: path.join(options.prodBranch + '/'),
dest: path.join(PROD_PATH) + '/'
}]
});
grunt.task.run(['aws_s3:hotbox_deploy_to_prod']);
};