nestjs-spelunker:用于生成NestJS应用程序模块依赖关系图的NestJS模块

时间:2021-05-02 09:07:02
【文件属性】:
文件名称:nestjs-spelunker:用于生成NestJS应用程序模块依赖关系图的NestJS模块
文件大小:164KB
文件格式:ZIP
更新时间:2021-05-02 09:07:02
TypeScript NestJS-Spelunker 描述 该模块对提供的模块进行了一些细化,并从给定的入口点读取了依赖关系树。 它将找到模块imports , provides ,具有用于exports controllers的内容,并将在依赖关系树中递归搜索,直到所有模块都被扫描为止。 对于providers如果有自定义提供者,则Spelunker将尽力确定Nest是使用值,类/标准还是工厂,如果是工厂,则将注入什么值。 探索模式 探索用途 就像, SpelunkerModule不是您在Nest的DI系统中注册的模块,而是在DI系统完成所有繁重的工作之后使用。 Spelunker的简单用法如下所示: async function bootstrap ( ) { const app = await NestFactory . create ( AppModule ) ; SpelunkerModu
【文件预览】:
nestjs-spelunker-master
----.gitignore(375B)
----tsconfig.json(336B)
----README.md(5KB)
----nest-cli.json(65B)
----CHANGELOG.md(2KB)
----.github()
--------workflows()
----test()
--------fixtures()
--------jest-e2e.json(183B)
--------app.e2e-spec.ts(776B)
--------app()
----.prettierrc(51B)
----commitlint.config.js(431B)
----LICENSE(1KB)
----.sonarcloud.properties(0B)
----package.json(3KB)
----tsconfig.build.json(97B)
----yarn.lock(357KB)
----lib()
--------debug.module.ts(8KB)
--------spelunker.module.ts(488B)
--------index.ts(36B)
--------spelunker.interface.ts(947B)
--------exploration.module.ts(3KB)
----.eslintrc.js(599B)
----.npmrc(57B)

网友评论