oss-site-deployer

2.2.0 • Public • Published

usage

const path = require('path')
const Deployer = require('oss-site-deployer')

const deployer = new Deployer({
  region: 'oss-cn-hangzhou',
  accessKeyId: '*',
  accessKeySecret: '*',
  bucket: 'lab-develop'
})

deployer.on('uploadedItem', ({ fileName }) => {
  console.log('uploaded ', fileName)
})

deployer
  .deploySite(path.resolve('../demo/dist'), 'test1')
  .then(() => {
    console.log('uploadedAll')
  })

todo

  • [x] add cli

Readme

Keywords

none

Package Sidebar

Install

npm i oss-site-deployer

Weekly Downloads

2

Version

2.2.0

License

MIT

Unpacked Size

7.86 kB

Total Files

5

Last publish

Collaborators

  • marvinwilliam
  • sqlwwx