Skip to content

smulder/lasso-gcs-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lasso-gcs-writer

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

Usage

require('lasso').configure({
  plugins: [
    {
      plugin: 'lasso-gcs-writer',
      config: {
        bucket: 'my-awesome-s3-bucket',
        bucketDir: 'folderToWriteTo',
        staticUrl: 'https://www.iHaveAStaticUrlOnMyBucket.com'
      }
    }
  ],
  ...
});

Configuration Properties

  • bucket {String|Object} - Name of the GCS bucket to upload to
  • projectID {String} (optional)- name of the GCS Project ID, needed if creating a new bucket
  • staticUrl {String} (optional) - if you have a static url on your bucket, provide it here (with http:// | https://). Include any folders at end of url
  • bucketDir {String} (optional) - subdirectory path to write to on the bucket
  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published