fast-up
Uploads compiled assets to Amazon S3
Install
$ npm install fast-up -g
Usage
$ up -h Usage: up [options] Options: -v, --version output the version number -c, --config [config] config file path -d, --dist [dist] upload files glob patten -b, --bucket [bucket] S3 bucket name -r, --region [region] S3 region name -a, --accessKey [accessKey] S3 client accessKey -s, --secretKey [secretKey] S3 client secretKey --port [port] S3 endpoint port --host [host] S3 endpoint host --base [base] base path
Config
Default config file is
up-config.json
orup-config.js
// up-config.jsmoduleexports = region: 'qn:cn-east-1' bucket: 'bucketName' accessKey: processenvACCESS_KEY secretKey: processenvSECRET_KEY before: task: 'copy' actions: src: 'lib/**' dest: 'dist' base: '.' after: task: 'delete' actions: src: 'dist/**' ;
Report a issue
License
fast-up is available under the terms of the MIT License.