0.3.4 • Published 2 years ago
ali-oss-static-web-deploy v0.3.4
Introduction
A tool to help you deploy static web application with Ali OSS
Features
- Keep your Ali OSS bucket mantain the minimal occupation by comparing and deleting the unnecessary files in OSS
- Uploading commandline progress bar
Install
- via npm
npm install --save ali-oss-static-web-deploy
- via yarn
yarn add ali-oss-static-web-deploy
Usage
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