Commit Graph

152 Commits

Author SHA1 Message Date
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
592ed5b6e3 Merge pull request 'chore: change versioning strategy' (#31) from chore/change-versioning into main
Some checks failed
Publish npm package / publish (push) Failing after 2m1s
Reviewed-on: #31
2026-03-24 14:40:24 +00:00
92283fdadb chore: change versioning strategy 2026-03-24 15:38:49 +01:00
didavila
82b734bc55 fix: correct import paths in use cases provider and update response mapping in repository implementation 2026-03-24 15:37:34 +01:00
didavila
f4d9340137 feat: add returnTypeVarName and returnBaseTypeVarName to TagOperation interface and update generator function 2026-03-24 15:37:26 +01:00
816369bf98 Merge pull request 'chore: add config for workflow' (#30) from chore/fix-checkout-publish into main
Some checks failed
Publish npm package / publish (push) Failing after 44s
Reviewed-on: #30
2026-03-24 14:28:11 +00:00
76fbadfc8f chore: add config for workflow 2026-03-24 15:27:49 +01:00
didavila
fc3d95052c fix: update import paths for repository and mapper templates 2026-03-24 15:15:06 +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
0740555736 Merge pull request 'chore: add config for workflow' (#29) from chore/fix-workflow-versioning into main
Some checks failed
Publish npm package / publish (push) Failing after 56s
Reviewed-on: #29
2026-03-24 14:09:18 +00:00
1381aff08e chore: add config for workflow 2026-03-24 15:08:50 +01:00
c1bb2a6244 Merge pull request 'chore: add config for workflow' (#28) from chore/fix-build into main
Some checks failed
Publish npm package / publish (push) Failing after 2m5s
Reviewed-on: #28
2026-03-24 13:57:49 +00:00
227104f9ac chore: add config for workflow 2026-03-24 14:56:48 +01:00
a8ecb15a09 Merge pull request 'chore: fix-build' (#27) from chore/fix-build into main
Reviewed-on: #27
2026-03-24 13:43:38 +00:00
didavila
c632b43f50 Merge branch 'main' into feat/review-imports 2026-03-24 14:39:40 +01:00
f53010a0e5 Merge pull request 'chore: add config for workflow' (#26) from chore/fix-publish-workflow into main
All checks were successful
Publish npm package / publish (push) Successful in 2m7s
Reviewed-on: #26
2026-03-24 13:32:30 +00:00
648a0764cd chore: add config for workflow 2026-03-24 14:31:59 +01:00
08fffa7cbb Merge pull request 'chore: add package-lock' (#25) from chore/add-package-lock into main
Some checks failed
Publish npm package / publish (push) Failing after 59s
Reviewed-on: #25
2026-03-24 13:22:43 +00:00
3c173b6bfa chore: add package-lock 2026-03-24 14:22:00 +01:00
7622073d8c Merge pull request 'chore: add workflow to push package to registry' (#24) from chore/add-publish-action into main
Some checks failed
Publish npm package / publish (push) Failing after 7m57s
Reviewed-on: #24
Reviewed-by: didavila <diego.davilafreitas@gmail.com>
2026-03-24 12:08:31 +00:00
dafcc3e0c3 chore: add workflow to push package to registry 2026-03-24 13:05:23 +01:00
didavila
dc678a3545 feat: Update main entry point and improve build script for cleaner architecture 2026-03-24 13:00:32 +01:00
b5d97215a0 Merge pull request 'chore: add author in package' (#22) from chore/add-author into main
Reviewed-on: #22
2026-03-24 11:44:21 +00:00
df76e9c677 chore: add author in package 2026-03-24 11:43:57 +00:00
didavila
dd32befcdc Merge branch 'main' into feat/spread-logic 2026-03-24 12:21:24 +01:00
didavila
d1bcf06439 feat: Add DTO imports processing and update model template for cleaner architecture 2026-03-24 12:20:50 +01:00
0bf42f2910 Merge pull request 'feat: spread logic from main.ts' (#21) from feat/spread-logic into main
Reviewed-on: #21
Reviewed-by: blas <me@blassanto.me>
2026-03-24 10:41:50 +00:00
didavila
32e7d73ab8 Merge branch 'main' into feat/spread-logic 2026-03-24 11:17:37 +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
180e558760 Merge pull request 'chore: remove old LICENSE' (#20) from chore/remove-old-license into main
Reviewed-on: #20
2026-03-24 10:03:14 +00:00
4a504fccde chore: remove old LICENSE 2026-03-24 10:02:53 +00:00
730c06cc3f Merge pull request 'chore: add LICENSE' (#19) from chore/modify-license into main
Reviewed-on: #19
2026-03-24 10:02:04 +00:00
c15d1caaaa chore: add LICENSE 2026-03-24 10:01:21 +00:00
didavila
8854bc5217 feat: add contributor information for Diego Davila Freitas 2026-03-24 09:19:52 +01:00
8a48486465 Merge pull request 'chore: delete QUICKSTART.md' (#18) from chrore/delete-quickstart into main
Reviewed-on: #18
2026-03-24 08:05:31 +00:00
cd03067235 chore: delete QUICKSTART.md 2026-03-24 08:05:08 +00:00
9f43ae7c8d Merge pull request 'chore: add LICENSE' (#17) from chore/add-license into main
Reviewed-on: #17
2026-03-24 07:52:03 +00:00
f0e8c3b794 Add License 2026-03-24 07:51:13 +00:00
22b8e8974a Merge pull request 'fix: remove generate.js and ignore it' (#16) from fix/gitignore into main
Reviewed-on: #16
Reviewed-by: didavila <diego.davilafreitas@gmail.com>
2026-03-24 07:24:55 +00:00
9774dad4e3 fix: remove generate.js and ignore it 2026-03-24 08:22:35 +01:00
1ea5150042 Merge pull request 'feat: migrate-to-TS' (#15) from feat/migrate-to-TS into main
Reviewed-on: #15
Reviewed-by: blas <me@blassanto.me>
2026-03-23 16:32:54 +00:00
didavila
72536d4a86 feat: change name 2026-03-23 17:26:04 +01:00
didavila
11b324ef59 Merge branch 'main' into feat/migrate-to-TS 2026-03-23 17:23:56 +01:00
didavila
cebadbfbcc feat: add Prettier and ESLint configuration for code formatting and linting
- Create .prettierrc for Prettier configuration
- Add eslint.config.js for ESLint setup with TypeScript support
- Update package.json to include linting and formatting scripts
- Refactor generate.ts and generate.js for improved readability and error handling
- Enhance QUICKSTART.md and README.md with formatting and clarity improvements
2026-03-23 17:23:06 +01:00
didavila
cd00eb39ca feat: add TypeScript-based OpenAPI Clean Architecture generator
- Introduced a new TypeScript file (generate.ts) for generating Angular code with Clean Architecture from OpenAPI/Swagger specifications.
- Implemented a CLI using Commander.js for user input and options.
- Added functions for analyzing Swagger files, generating code, organizing files, and creating a report.
- Integrated Mustache templates for generating models, repositories, use cases, and mappers.
- Created a build process with TypeScript and updated package.json to include build scripts and dependencies.
- Added TypeScript configuration (tsconfig.json) for compiling the TypeScript code.
- Updated the main entry point in package.json to point to the compiled JavaScript file in the dist directory.
2026-03-23 17:01:22 +01:00
7c971a8409 Merge pull request 'fix: fix template variable wrapping to fit java requirements' (#14) from fix/review-templates into main
Reviewed-on: #14
2026-03-23 15:46:29 +00:00
didavila
9805a14111 fix: refactor providers to use makeEnvironmentProviders 2026-03-23 16:28:30 +01:00
didavila
4905f84d2c fix: fix template variable wrapping to fit java requirements 2026-03-23 15:06:11 +01:00
5ed3f6fee1 Merge pull request 'feat: Implement custom Clean Architecture generation using Mustache templates for domain and data layers' (#5) from feat/generate-files into main
Reviewed-on: #5
2026-03-23 11:48:06 +00:00