feat(cli): add CLI tool for adding ECS framework to existing projects (#339)

* feat(cli): add CLI tool for adding ECS framework to existing projects

- Support Cocos Creator 2.x/3.x, LayaAir 3.x, and Node.js platforms
- Auto-detect project type based on directory structure
- Generate ECSManager with full configuration (debug, remote debug, WebSocket URL)
- Auto-install dependencies with npm/yarn/pnpm detection
- Platform-specific decorators and lifecycle methods

* chore: add changeset for @esengine/cli

* fix(ci): fix YAML syntax error in ai-issue-helper workflow

* fix(cli): resolve file system race conditions (CodeQL)

* chore(ci): remove unused and broken workflows

* fix(ci): fix YAML encoding in release.yml
This commit is contained in:
YHH
2025-12-26 16:18:59 +08:00
committed by GitHub
parent 155411e743
commit c4f7a13b74
24 changed files with 1703 additions and 786 deletions

39
pnpm-lock.yaml generated
View File

@@ -2032,6 +2032,31 @@ importers:
specifier: ^4.5.4
version: 4.5.4(@types/node@20.19.27)(rollup@4.54.0)(typescript@5.9.3)(vite@6.4.1(@types/node@20.19.27)(jiti@2.6.1)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))
packages/tools/cli:
dependencies:
chalk:
specifier: ^4.1.2
version: 4.1.2
commander:
specifier: ^12.1.0
version: 12.1.0
prompts:
specifier: ^2.4.2
version: 2.4.2
devDependencies:
'@types/node':
specifier: ^20.19.0
version: 20.19.27
'@types/prompts':
specifier: ^2.4.9
version: 2.4.9
rimraf:
specifier: ^5.0.0
version: 5.0.10
typescript:
specifier: ^5.8.3
version: 5.9.3
packages/tools/sdk:
dependencies:
'@esengine/asset-system':
@@ -4793,6 +4818,9 @@ packages:
'@types/pako@2.0.4':
resolution: {integrity: sha512-VWDCbrLeVXJM9fihYodcLiIv0ku+AlOa/TQ1SvYOaBuyrSKgEcro95LJyIsJ4vSo6BXIxOKxiJAat04CmST9Fw==}
'@types/prompts@2.4.9':
resolution: {integrity: sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA==}
'@types/prop-types@15.7.15':
resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==}
@@ -5557,6 +5585,10 @@ packages:
resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
engines: {node: '>=16'}
commander@12.1.0:
resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
engines: {node: '>=18'}
commander@2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
@@ -13067,6 +13099,11 @@ snapshots:
'@types/pako@2.0.4': {}
'@types/prompts@2.4.9':
dependencies:
'@types/node': 20.19.27
kleur: 3.0.3
'@types/prop-types@15.7.15': {}
'@types/qs@6.14.0': {}
@@ -13936,6 +13973,8 @@ snapshots:
commander@11.1.0: {}
commander@12.1.0: {}
commander@2.20.3: {}
commander@4.1.1: {}