0.1.1 • Published 6 years ago

lasso-s3-writer v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

lasso-s3-writer

A plugin for lasso that will upload bundles and resources to Amazon S3.

WARNING: lasso-s3-writer should only be used to do Lasso prebuilds

Usage

require('lasso').configure({
  plugins: [
    {
      plugin: 'lasso-s3-writer',
      config: {
        awsConfig: {
          region: 'us-east-1'
        },
        bucket: 'my-awesome-s3-bucket'
      }
    }
  ],
  ...
});

Configuration Properties

  • bucket {String|Object} - Name of the AWS S3 bucket to upload to or a configuration object that is passed to s3.createBucket(...)
  • awsConfig {Object} (optional)- Configuration properties that is passed to AWS.config.update(...)
  • s3Config {Object} (optional) - Configuration properties that is passed to AWS.S3(...)
  • s3 {AWS.S3} (optional) - An AWS.S3 object
  • calculateKey {Function} (optional) - A function to calculate a unique key for each bundle or resource. Defaults to using sha1 checksum.
  • readTimeout {Number} (optional) - The maximum amount of time to wait for a file to be read. Defaults to 30 seconds.
  • logger {Object} (optional) - Logger to write logs to. Does not log if not specified.
0.1.1

6 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago