Commit Graph

7 Commits

Author SHA1 Message Date
didavila
e008144813 refactor: normalize array type notation from Array<T> to T[] in generators and type mapper 2026-03-24 16:27:10 +01:00
didavila
e8c919ee76 feat: collect and render model imports for referenced types in Clean Architecture generation 2026-03-24 16:02:17 +01:00
didavila
a97c3b22fa feat: enhance TagOperation interface with detailed parameter structure and update return type handling in generator 2026-03-24 15:52:11 +01:00
didavila
031bdb4b3a feat: add classVarName to operations in generateCleanArchitecture function 2026-03-24 15:44:10 +01:00
didavila
f4d9340137 feat: add returnTypeVarName and returnBaseTypeVarName to TagOperation interface and update generator function 2026-03-24 15:37:26 +01:00
didavila
3fe2333a03 feat: implement toCamelCase utility function and update Clean Architecture generator to use it 2026-03-24 15:12:52 +01:00
didavila
bd67e6c6d1 feat: Implement Clean Architecture code generation with Mustache templates
- Added `clean-arch.generator.ts` for generating models, mappers, repositories, use cases, and providers based on OpenAPI specs.
- Introduced `dto.generator.ts` to invoke `openapi-generator-cli` for generating DTOs and organizing them.
- Created `report.generator.ts` to generate a JSON report of the generation process.
- Implemented `analyzer.ts` for parsing OpenAPI/Swagger files and extracting relevant data.
- Defined new types in `cli.types.ts`, `generation.types.ts`, `openapi.types.ts`, and `swagger.types.ts` for better type safety.
- Added utility functions in `filesystem.ts` for creating directory structures and cleaning up temporary files.
- Developed logging utilities in `logger.ts` for better console output.
- Included OpenAPI generator checks and installation in `openapi-generator.ts`.
- Added type mapping utility in `type-mapper.ts` for converting OpenAPI types to TypeScript types.
- Updated `package.json` scripts to lint all TypeScript files.
- Modified `tsconfig.json` to include all TypeScript files in the project.
2026-03-24 11:16:45 +01:00