0.1.1 • Published 8 years ago
lasso-s3-writer v0.1.1
lasso-s3-writer
A plugin for lasso that will
upload bundles and resources to Amazon S3.
WARNING:
lasso-s3-writershould 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 tos3.createBucket(...)awsConfig{Object} (optional)- Configuration properties that is passed toAWS.config.update(...)s3Config{Object} (optional) - Configuration properties that is passed toAWS.S3(...)s3{AWS.S3} (optional) - AnAWS.S3objectcalculateKey{Function} (optional) - A function to calculate a unique key for each bundle or resource. Defaults to usingsha1checksum.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.