Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.18 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.18 KB

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

References

License

MIT