[英]List all dependencies between 2 folders/library in angular app
我有一個巨大的 angular 項目,對於一些代碼重構,我需要列出 2 個特定文件夾/庫之間的所有依賴關系(我正在使用 nx)。 舉個例子:
/apps
/lib-1
a.service.ts
b.component.ts
/lib-2
/services
string-util.service.ts
/models
custom-a.model.ts
custom-b.model.ts
index.ts
/lib-3
date-util.service.ts
custom-c.model.Ts
在a.service.ts
:
import {StringUtilService} from '../lib-2/services/string-util.service.ts';
import {CustomA, CustomB} from '../lib-2/models';
import {CustomC} from '../lib-3/custom-c.model.ts';
import {DateUtilService} from '../lib-3/date-util.service.ts';
所以,我想要一個腳本或其他東西,如果我提供“lib-1”和“lib-2”,它可以給我它之間的依賴性,結果將是:
StringUtilService,
CustomAModel,
CustomBModel,
您是否有任何插件或 Webstorm 工具可以做類似的事情?
或者解決我的問題的另一種方法是:我為我的工具提供“lib-2”,它給了我這個結果:
"StringUtilService" used in lib-1,
"CustomAModel" used in lib-1,
"CustomBModel" used in lib-1
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.