lasso-s3-writer
Lasso.js plugin for writing files to AWS S3
Last updated 3 years ago by austinkelleher .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lasso-s3-writer 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.1.1                                ...           latest (3 years ago)

4 Versions

  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (8)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |