grunt-awssum-deploy

Deploy your static files to S3

grunt-awssum-deploy

Upload your static assets to an S3 bucket

This plugin requires Grunt ~0.4.1

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

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-awssum-deploy');

In your project's Gruntfile, add a section named s3deploy to the data object passed into grunt.initConfig().

Type: String

Your AWS access key, mandatory.

Type: String

Your AWS secret, mandatory.

Type: String

The bucket to upload to, mandatory.

The project is based on awssum.

grunt.initConfig({
  s3deploy: {
    options: {
      key: '<%= secret.awsKey %>',
      secret: '<%= secret.awsSecret %>',
      bucket: '<%= secret.awsBucket %>',
      access: 'public-read'
    },
    dist: {
      files: [{
        expand: true,
        cwd: 'dist/',
        src: '**/*.*',
        dest: './'
      }]
    }
  }
})

In lieu of a formal styleguide, take care to maintain the existing coding style.

  • 2013-07-28 v0.1.0 First release