Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript Migration: Initial Setup and Plan #1001

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

codegen-sh[bot]
Copy link
Contributor

@codegen-sh codegen-sh bot commented Apr 1, 2025

TypeScript Migration: Initial Setup and Plan

This PR sets up the initial infrastructure for migrating the Codegen repository from Python to TypeScript. Given the size of the codebase (approximately 1165 Python files), this will be a phased approach.

What's included in this PR:

  1. TypeScript Configuration:

    • Added with appropriate settings
    • Set up ESLint and Prettier for code quality
    • Configured Jest for testing
  2. Package Setup:

    • Updated with TypeScript dependencies
    • Added scripts for building, testing, and linting
  3. Initial CLI Structure:

    • Created a basic TypeScript CLI structure to mirror the Python CLI
    • Implemented a sample command (config)
  4. Migration Plan:

    • Added with a detailed plan for the migration
    • Outlined phases, challenges, and next steps

Next Steps:

  1. Begin identifying core modules for migration
  2. Create TypeScript equivalents of Python classes and functions
  3. Implement type definitions for all data structures
  4. Gradually migrate CLI commands

This is just the first step in a larger migration effort. The goal is to have a fully functional TypeScript version by the end of 2025.

Notes:

  • This PR does not modify any existing Python code
  • The TypeScript version will initially exist alongside the Python version
  • Future PRs will gradually migrate functionality from Python to TypeScript

@codegen-sh codegen-sh bot requested review from codegen-team and a team as code owners April 1, 2025 21:52
Copy link

codecov bot commented Apr 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants