@gati-framework/cli
Version:
CLI tool for Gati framework - create, develop, build and deploy cloud-native applications
39 lines • 995 B
TypeScript
/**
* @module cli/analyzer/handler-analyzer
* @description Analyze handlers and modules using ts-morph
*/
export interface HandlerInfo {
filePath: string;
relativePath: string;
route: string;
customRoute?: string;
method?: string;
exportName: string;
exportType: 'default' | 'named';
imports: string[];
dependencies: string[];
}
export interface ModuleInfo {
filePath: string;
exportName: string;
exportType: 'default' | 'named';
methods: string[];
dependencies: string[];
}
export interface RouteNode {
path: string;
handler?: HandlerInfo;
children: Map<string, RouteNode>;
conflicts: string[];
}
export interface ProjectManifest {
handlers: HandlerInfo[];
modules: ModuleInfo[];
routeTree: RouteNode;
conflicts: string[];
}
/**
* Analyze entire project and create manifest
*/
export declare function analyzeProject(projectRoot: string): ProjectManifest;
//# sourceMappingURL=handler-analyzer.d.ts.map