1.1.8 • Published 7 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
7 years ago
1.1.7
7 years ago
1.1.6
7 years ago
1.1.5
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.17
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago