1.1.8 • Published 5 years ago

ts-s3-publish v1.1.8

Weekly downloads
21
License
MIT
Repository
-
Last release
5 years ago

Install

Install with npm:

npm install ts-s3-publish --save-dev

Required params

AttributeDescription
BUCKETName of the bucket in S3
KEYUser's key hash
SECRETUser's secret hash

Optional params

AttributeDefaultDescription
UPLOAD_FOLDER. (root)Name of the folder from current working directory
AWS_FOLDERpublicName of the folder to upload the files to in S3 Bucket (. for root)
NO_CACHE_LISTindex.html,robots.txt (comma separated list)Names of the files that will have the header CacheControl set to max-age=0
IGNORE_LISTThumbs.db,.DS_Store (comma separated list)Names of the files that will be ignored when uploading
PURGE_CACHEfalseIf 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*nullIf 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_CACHE is set to true.

Usage

BUCKET=BUCKET_NAME KEY=KEY SECRET=SECRET ts-s3-publish

Change log

  • 1.1.7 - UPLOAD_FOLDER now supports single files.
  • 1.1.8 - UPLOAD_FOLDER now supports wildcard to upload multiple files. eg: `target/filename*.war'
1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago