oss-site-deployer
Advanced tools
Comparing version 1.0.1 to 1.0.3
@@ -52,3 +52,3 @@ const { promisify } = require('util'); | ||
this.fileList = []; | ||
this.pending = Object.create(null); | ||
this.pending.clear(); | ||
this.emit('uploadedAll', ret); | ||
@@ -58,5 +58,5 @@ return { time: Date.now() - startedAt, fileCount: fileList.length }; | ||
async deploySite(uploadDir, prefix = '') { | ||
async deploySite(uploadDir, prefix = '', { ignore } = {}) { | ||
this.uploadDir = uploadDir || this.uploadDir; | ||
const fileList = await globAsync('**/*', { cwd: uploadDir, nodir: true }); | ||
const fileList = await globAsync('**/*', { cwd: uploadDir, nodir: true, ignore }); | ||
const sortedFileList = fileList.sort((fileName) => (!fileName.endsWith('.html') ? -1 : 1)); | ||
@@ -63,0 +63,0 @@ return this.uploadFileListByOss(sortedFileList, prefix); |
{ | ||
"name": "oss-site-deployer", | ||
"version": "1.0.1", | ||
"version": "1.0.3", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"release": "standard-version", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"bin": { | ||
"oss-deploy": "bin/oss-deploy" | ||
"oss-site-deploy": "bin/oss-site-deploy" | ||
}, | ||
@@ -16,4 +17,14 @@ "author": "sqlwwx <wwx_2012@live.com> (http://wiki.lab.wuweixing.com)", | ||
"ali-oss": "^6.0.1", | ||
"commander": "^2.19.0", | ||
"glob": "^7.1.3" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^7.2.1", | ||
"@commitlint/config-conventional": "^7.1.2", | ||
"husky": "^1.2.1", | ||
"standard-version": "^4.4.0" | ||
}, | ||
"husky": { | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
} |
5098
5
3
4
+ Addedcommander@^2.19.0
+ Addedcommander@2.20.3(transitive)