Deploy your static files to S3
Upload your static assets to an S3 bucket
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-awssum-deploy --save-dev
In your project's Gruntfile, add a section named
s3deploy to the data object passed into
Your AWS access key, mandatory.
Your AWS secret, mandatory.
The bucket to upload to, mandatory.
How many concurrent connections to keep open while uploading to S3. Defaults to 3.
gruntinitConfigs3deploy:options:key: '<%= secret.awsKey %>'secret: '<%= secret.awsSecret %>'bucket: '<%= secret.awsBucket %>'access: 'public-read'connections: 5dist:files:expand: truecwd: 'dist/'src: '**/*.*'dest: './'
In lieu of a formal styleguide, take care to maintain the existing coding style.