#800 Use new typedoc config

This commit is contained in:
Dolan
2021-03-09 02:23:22 +00:00
parent e98fe5921c
commit 7ebef8b3b5
4 changed files with 16 additions and 32 deletions

2
package-lock.json generated
View File

@ -4888,7 +4888,7 @@
}, },
"jsesc": { "jsesc": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", "resolved": "http://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz",
"integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=",
"dev": true "dev": true
}, },

View File

@ -14,7 +14,7 @@
"tsc": "rimraf ./build && tsc -p .", "tsc": "rimraf ./build && tsc -p .",
"webpack": "rimraf ./build && webpack", "webpack": "rimraf ./build && webpack",
"demo": "npm run build && npm run ts-node ./demo", "demo": "npm run build && npm run ts-node ./demo",
"typedoc": "typedoc src/index.ts", "typedoc": "typedoc src/index.ts --tsconfig tsconfig.typedoc.json",
"style": "prettier -l \"src/**/*.ts\"", "style": "prettier -l \"src/**/*.ts\"",
"style.fix": "npm run style -- --write", "style.fix": "npm run style -- --write",
"fix-types": "ts-node scripts/types-absolute-fixer.ts", "fix-types": "ts-node scripts/types-absolute-fixer.ts",

View File

@ -13,35 +13,8 @@
"noUnusedParameters": true, "noUnusedParameters": true,
"baseUrl": "./src", "baseUrl": "./src",
"paths": { "paths": {
"/*": [ "/*": ["./*"]
"./*"
]
} }
}, },
"exclude": [ "exclude": ["node_modules", "tests", "**/_*", "demo", "scripts", "webpack.config.ts"]
"node_modules",
"tests",
"**/_*",
"demo",
"scripts",
"webpack.config.ts"
],
"typedocOptions": {
"mode": "file",
"out": "docs/api",
"exclude": "test",
"theme": "default",
"ignoreCompilerErrors": true,
"excludePrivate": true,
"excludeProtected": true,
"excludeNotExported": true,
"excludeExternals": false,
"target": "ES6",
"moduleResolution": "node",
"preserveConstEnums": true,
"stripInternal": true,
"suppressExcessPropertyErrors": true,
"suppressImplicitAnyIndexErrors": true,
"module": "commonjs"
}
} }

11
tsconfig.typedoc.json Normal file
View File

@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"typedocOptions": {
"out": "docs/api",
"exclude": "test",
"theme": "default",
"excludePrivate": true,
"excludeProtected": true,
"excludeExternals": false
}
}