简化 jsdoc 相关设置

This commit is contained in:
陆柯 2021-06-07 10:50:13 +08:00
parent 812ce057a2
commit d0500a9730
3 changed files with 5 additions and 4 deletions

2
.gitignore vendored
View File

@ -6,3 +6,5 @@ package-lock.json
~*
.gitattributes
dump.rdb
# jsdoc 的输出目录
out/

View File

@ -1376,4 +1376,5 @@ class TICrypto {
}
}
// 必须单独写 module.exports不要和类定义写在一起否则会导致 jsdoc 解析不到类内文档。
module.exports = TICrypto

View File

@ -15,12 +15,10 @@
},
"devDependencies": {
"docdash": "^1.2.0",
"jaguarjs-jsdoc": "^1.1.0",
"jsdoc": "^3.6.6",
"minami": "^1.2.3"
"jsdoc": "^3.6.6"
},
"scripts": {
"setup": "npm install"
"doc": "jsdoc ./index.js -t node_modules/docdash --verbose"
},
"author": ""
}