A plugin for lasso
that will
upload bundles and resources to Google Cloud Storage.
WARNING:
lasso-gcs-writer
should only be used to do Lasso prebuilds
WARNING:
lasso-gcs-writer
is not fully tested
require('lasso').configure({
plugins: [
{
plugin: 'lasso-gcs-writer',
config: {
bucket: 'my-awesome-s3-bucket',
bucketDir: 'folderToWriteTo',
staticUrl: 'https://www.iHaveAStaticUrlOnMyBucket.com'
}
}
],
...
});
bucket
{String|Object} - Name of the GCS bucket to upload toprojectID
{String} (optional)- name of the GCS Project ID, needed if creating a new bucketstaticUrl
{String} (optional) - if you have a static url on your bucket, provide it here (with http:// | https://). Include any folders at end of urlbucketDir
{String} (optional) - subdirectory path to write to on the bucketcalculateKey
{Function} (optional) - A function to calculate a unique key for each bundle or resource. Defaults to usingsha1
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.