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

View File

@@ -0,0 +1,11 @@
---
"@esengine/cli": minor
---
feat(cli): 添加 CLI 工具用于将 ECS 框架集成到现有项目
- 支持 Cocos Creator 2.x/3.x、LayaAir 3.x、Node.js 平台
- 自动检测项目类型
- 生成完整配置的 ECSManager调试模式、远程调试、WebSocket URL
- 自动安装依赖(支持 npm/yarn/pnpm
- 针对不同平台生成正确的装饰器和生命周期方法