1.1.8 • Published 8 years ago
ts-s3-publish v1.1.8
Install
Install with npm:
npm install ts-s3-publish --save-devRequired params
| Attribute | Description |
|---|---|
BUCKET | Name of the bucket in S3 |
KEY | User's key hash |
SECRET | User's secret hash |
Optional params
| Attribute | Default | Description |
|---|---|---|
UPLOAD_FOLDER | . (root) | Name of the folder from current working directory |
AWS_FOLDER | public | Name of the folder to upload the files to in S3 Bucket (. for root) |
NO_CACHE_LIST | index.html,robots.txt (comma separated list) | Names of the files that will have the header CacheControl set to max-age=0 |
IGNORE_LIST | Thumbs.db,.DS_Store (comma separated list) | Names of the files that will be ignored when uploading |
PURGE_CACHE | false | If set to true, will create a Cloudfront Invalidation (User needs to have access to: cloudfront:CreateInvalidation) |
PURGE_PATHS* | /* (comma separated list, wildcards allowed) | Object paths to purge cache for Invalidation Paths (Amazon AWS Docs) |
DISTRIBUTION_ID* | null | If not provided, will use the BUCKET name to find the Distribution ID using distribution aliases (User needs to have access to: cloudfront:ListDistributions) |
*Only applicable if
PURGE_CACHEis set to true.
Usage
BUCKET=BUCKET_NAME KEY=KEY SECRET=SECRET ts-s3-publish
Change log
- 1.1.7 -
UPLOAD_FOLDERnow supports single files. - 1.1.8 -
UPLOAD_FOLDERnow supports wildcard to upload multiple files. eg: `target/filename*.war'
1.1.8
8 years ago
1.1.7
8 years ago
1.1.6
8 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.17
8 years ago
1.0.16
8 years ago
1.0.15
8 years ago
1.0.14
8 years ago
1.0.13
8 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago