Registry / devops / rollup-plugin-google-cloud-storage

rollup-plugin-google-cloud-storage

JSON →
library0.0.3jsnpmunverified

Uploads build assets to a Google Cloud Storage bucket as a Rollup plugin. Version 0.0.3 (pre-release, no recent updates). Supports configurable directory, bucket name, service key JSON, concurrency, and skip-if-existing logic. Differentiated by direct GCS integration for Rollup, but minimal adoption and stale maintenance. Alternatives like @google-cloud/storage offer broader functionality.

npm install rollup-plugin-google-cloud-storage
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-GOOG
R
rollup-plugin-google-cloud-storage
devopsjavascriptv0.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GoogleCloudStorage
✓ import GoogleCloudStorage from 'rollup-plugin-google-cloud-storage'
Default import is correct; no named export in documentation.

Rollup config that uploads the 'dist' directory to a GCS bucket with authentication via env vars.

// rollup.config.js import GoogleCloudStorage from 'rollup-plugin-google-cloud-storage'; export default { input: 'src/index.js', output: { file: 'dist/bundle.js', format: 'cjs' }, plugins: [GoogleCloudStorage({ bucketName: process.env.GCS_BUCKET ?? 'my-bucket', serviceKeyJson: process.env.GCS_KEY_JSON ?? '{}', directory: 'dist', concurrency: 3, skipIfExists: false })] };
Debug
Known issues
deprecatedPackage is extremely early (0.0.3) with no recent updates; consider using @google-cloud/storage directly.
fix
Use @google-cloud/storage or gulp-gcloud-storage for more robust GCS uploads.
affects: >=0.0.0
gotchaserviceKeyJson must be a stringified JSON object, not a path or object.
fix
Use JSON.stringify(serviceAccountObject) or read from environment variable.
affects: >=0.0.0
Errors
Common errors & fixes
Error: bucketName is required
Missing 'bucketName' option in plugin config.
fix
Add bucketName: 'your-bucket' to options.
Error: serviceKeyJson is required
Missing 'serviceKeyJson' option (must be stringified JSON).
fix
Provide serviceKeyJson as a JSON string, e.g., from env var.
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies
@google-cloud/storageoptionalpeer dependency for GCS client
rolluprequiredRollup plugin interface
Agent activity
6 hits · last 30 days
node
6
Resources
rollup-plugin-google-cloud-storage — npm install rollup-plugin-google-cloud-storage · libregistry