A tool to help you deploy static web application with Ali OSS
- Keep your Ali OSS bucket mantain the minimal occupation by comparing and deleting the unnecessary files in OSS
- Uploading commandline progress bar
- via npm
npm install --save ali-oss-static-web-deploy
- via yarn
yarn add ali-oss-static-web-deploy
const aliOSSStaicWebDeploy = require('ali-oss-static-web-deploy')
aliOSSStaicWebDeploy({
region: 'Your region',
accessKeyId: 'Your access key',
accessKeySecret: 'Your access key secret',
bucket: 'Your bucket name',
// for example: require('path').resolve(process.cwd(), 'dist')
staticWebAppPath: 'Your local path to deploy'
})
If you don't know how to get the accessKeyId
and accessKeySecret
.
Please read the Ali RAM Documnetation