Nx plugin to deploy your app to Cloud Storage.
- Upload files to Google Cloud Storage buckets
- Optional gzip compression for uploaded files
- Configurable gzip extensions
- Ideal for static site hosting
npm install -D @nx-extend/gcp-storageUpload files to a Cloud Storage bucket:
nx upload <project-name>| Name | Type | Default | Description |
|---|---|---|---|
bucket |
string |
- | What bucket to upload to |
directory |
string |
- | Directory to upload |
gzip |
boolean |
false |
Use gzip when uploading |
gzipExtensions |
string |
- | File extensions to gzip (comma-separated) |
{
"upload": {
"executor": "@nx-extend/gcp-storage:upload",
"options": {
"bucket": "my-static-site",
"directory": "dist/apps/my-app"
}
}
}{
"upload": {
"executor": "@nx-extend/gcp-storage:upload",
"options": {
"bucket": "my-static-site",
"directory": "dist/apps/my-app",
"gzip": true,
"gzipExtensions": "html,css,js,json,svg"
}
}
}