feat: migrate-to-TS #15

Merged
blas merged 4 commits from feat/migrate-to-TS into main 2026-03-23 16:32:56 +00:00
Collaborator

🚀 DX Enhancement: TypeScript Migration & Linting Setup

Description

This PR focuses on improving developer experience and code reliability by migrating legacy scripts to TypeScript and enforcing consistent coding standards.

Key Changes

  • JS to TS Migration: Converted core scripts to TypeScript to leverage static typing and catch potential bugs at compile-time.
  • Script Optimization: Updated existing build/utility scripts to ensure full compatibility with the new TypeScript environment.
  • Code Quality Tooling: * Integrated ESLint for static code analysis and identifying problematic patterns.
    • Added Prettier to automate code formatting and ensure style consistency across the team.

Benefits

  • Type Safety: Reduced runtime errors by defining strict interfaces and types.
  • Maintainability: Standardized codebase makes it easier for new contributors to jump in.
  • Consistency: Automated formatting eliminates "nitpick" comments in future code reviews.

resolves #12

## 🚀 DX Enhancement: TypeScript Migration & Linting Setup ### Description This PR focuses on improving developer experience and code reliability by migrating legacy scripts to TypeScript and enforcing consistent coding standards. ### Key Changes * **JS to TS Migration:** Converted core scripts to TypeScript to leverage static typing and catch potential bugs at compile-time. * **Script Optimization:** Updated existing build/utility scripts to ensure full compatibility with the new TypeScript environment. * **Code Quality Tooling:** * Integrated **ESLint** for static code analysis and identifying problematic patterns. * Added **Prettier** to automate code formatting and ensure style consistency across the team. ### Benefits - **Type Safety:** Reduced runtime errors by defining strict interfaces and types. - **Maintainability:** Standardized codebase makes it easier for new contributors to jump in. - **Consistency:** Automated formatting eliminates "nitpick" comments in future code reviews. resolves #12
didavila added the enhancement label 2026-03-23 16:27:05 +00:00
didavila self-assigned this 2026-03-23 16:27:05 +00:00
didavila added 4 commits 2026-03-23 16:27:07 +00:00
- 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.
- 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
didavila requested review from blas 2026-03-23 16:27:08 +00:00
didavila added this to the Generador project 2026-03-23 16:27:09 +00:00
blas approved these changes 2026-03-23 16:32:41 +00:00
blas merged commit 1ea5150042 into main 2026-03-23 16:32:56 +00:00
didavila moved this to Done in Generador on 2026-03-24 07:31:23 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blas/openapi-clean-arch-gen#15