1.0.4 • Published 11 years ago

grunt-ember-s3 v1.0.4

Weekly downloads
14
License
MIT
Repository
github
Last release
11 years ago

Grunt Ember S3

Tasks for uploading various build files to S3.

This task will, given some file (or mulitple files using grunt's file glob syntax):

  • Create a file called fileBaseName-latest.extension
  • Create a file called fileBaseName-gitRevision.extension

Usage

In your .bashrc or .zshrc:

export TRAVIS_COMMIT='something-fake' # This will be here on Travis CI.
export TRAVIS_BRANCH='master' # This will be here on Travis CI.
export AWS_ACCESS_KEY_ID='something' # Encrypt this in .travis.yml
export AWS_SECRET_ACCESS_KEY='asdf1234' # Encrypt this in .travis.yml

You can read about encrypting environment variables on the Travis docs page about encryption keys.

In your Gruntfile:

grunt.loadNpmTasks('grunt-ember-s3');
grunt.initConfig({
  'ember-s3':
    src: [ 'dist/*.js' ], // defaults to this
    bucketName: 'ember-test',
    // optional, if given, creates a "folder" named foo on s3
    prefix: 'foo' });

In the .travis.yml:

after_success: 'grunt ember-s3'

License

MIT (see the LICENSE file in this repository).

1.0.4

11 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago