我开始在 Angular 9 项目中使用 compodoc + storybook。
安装了所有依赖项,Storybook 工作正常,但由于某种原因,compodoc 生成的 documentation.json 是空的,如下所示:
{
"pipes": [],
"interfaces": [],
"injectables": [],
"classes": [],
"directives": [],
"components": [],
"modules": [],
"miscellaneous": [],
"routes": [],
"coverage": {
"count": 0,
"status": "low",
"files": []
}
}
我正在使用的命令是:
compodoc -p .storybook/tsconfig.json -e json -d ./.storybook
我的 tsconfig.json 是:
{
"extends": "../src/tsconfig.app.json",
"compilerOptions": {
"types": [
"node"
]
},
"exclude": [
"../src/test.ts",
"../src/**/*.spec.ts",
"../projects/**/*.spec.ts"
],
"include": [
"../src/**/*",
"../projects/**/*"
],
"files": [
"./typings.d.ts"
]
}
有什么想法可能是错的吗?