/ali-oss-static-web-deploy

To help you deploy static web applications with ali-oss node sdk.

Primary LanguageJavaScript

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