oss-site-deployer
v2.2.0
Published
``` const path = require('path') const Deployer = require('oss-site-deployer')
Downloads
9
Readme
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