ali-oss-cli
v1.0.5
Published
aliyun oss upload cli
Downloads
15
Readme
compress dist and upload it to aliyun oss
npm i --save-dev ali-oss-cli
make UTF-8 file '.ossrc'
{
"accessKeyId": "***",
"accessKeySecret": "***",
"region": "oss-cn-hangzhou", // eg: oss-cn-hangzhou
"bucket": "stgame",
"srcPath":"dist", // compress and upload directory
"zipName": "servername-latest-dev.zip" // zip file name
}
edit 'package.json'
{
...
"scripts": :{
"upload": "ossUpload"
...
}
...
}
upload
npm run upload