Skip to content

Conversation

@codegen-sh
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 a team and codegen-team as code owners April 1, 2025 21:52
@codecov
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