تخطَّ إلى المحتوى
أمرمستورد

migrate-to-typescript

Migrate JavaScript project to TypeScript with proper typing and tooling setup

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

الملفات: 1 · الحجم: 2.9 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

بعد التنزيل، شغّل الأمر في الطرفية. يسأل unzip قبل أن يستبدل أي ملف موجود.

  • لهذا المشروع

    يوضع في: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/migrate-to-typescript.zip -d .claude/commands

  • لحسابك على الجهاز كله

    يوضع في: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/migrate-to-typescript.zip -d ~/.claude/commands

التعليمات

Migrate to TypeScript

Migrate JavaScript project to TypeScript with comprehensive type safety: $ARGUMENTS

Current JavaScript State

  • Project structure: @package.json (analyze JS/TS mix and dependencies)
  • JavaScript files: !find . -name "*.js" -not -path "./node_modules/*" | wc -l
  • Existing TypeScript: !find . -name "*.ts" -not -path "./node_modules/*" | wc -l
  • Build system: @webpack.config.js or @vite.config.js or @rollup.config.js

Task

Systematically migrate JavaScript codebase to TypeScript with proper typing and tooling:

Migration Strategy: Use $ARGUMENTS to specify gradual migration, complete conversion, strict mode, or incremental approach

Migration Process:

  1. Environment Setup - TypeScript installation, tsconfig.json configuration, build tool integration
  2. Type Definitions - Install @types packages, create custom type declarations, define interfaces
  3. File Migration - Rename .js to .ts/.tsx, add type annotations, resolve compiler errors
  4. Code Transformation - Convert classes, functions, and modules with proper typing
  5. Error Resolution - Fix type mismatches, null/undefined handling, strict mode issues
  6. Testing & Validation - Update test files, configure type checking, validate type coverage

Advanced Features: Generic types, mapped types, conditional types, module augmentation, and strict compiler settings.

Developer Experience: Configure IDE integration, debugging, linting rules, and team onboarding.

Output: Fully typed TypeScript codebase with strict type checking, comprehensive IntelliSense, and improved developer productivity.

الملفات

  • LICENSE1 ك.ب
  • migrate-to-typescript.md1.8 ك.ب

ما وجده الفحص الآلي

فحصنا الملفات آلياً وقت الاستيراد. هذا ما نبّه إليه الفحص، ولا يعني أن العنصر ضار ولا أنه سليم: اقرأه بنفسك.

  • يحتاج مراجعةأدوات مسموحة بلا حدود

    في الملف cli-tool/components/commands/setup/migrate-to-typescript.md

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ

عناصر مشابهة

  • أمرمستورد

    api-mock

    Build realistic API mock servers with request stubbing, dynamic data, test scenarios, and contract testing

    MITالملفات: 1

  • أمرمستورد

    design-rest-api

    Design RESTful API architecture with comprehensive endpoints, authentication, and documentation

    MITالملفات: 1

  • أمرمستورد

    doc-api

    Generate comprehensive API documentation from code with interactive examples and testing capabilities

    MITالملفات: 1

  • أمرمستورد

    feature-development

    Orchestrate end-to-end feature development from requirements to deployment

    MITالملفات: 1

  • أمرمستورد

    generate-api-documentation

    Auto-generate API reference documentation with multiple output formats and automated deployment

    MITالملفات: 1

  • أمرمستورد

    implement-caching-strategy

    Design and implement comprehensive caching solutions for improved performance and scalability

    MITالملفات: 1