feat(tools): 添加 CLI 模块管理命令和文档验证 demos

- CLI 新增 list/add/remove 命令管理项目模块
- 创建 demos 包验证模块文档正确性
- 包含 Timer/FSM/Pathfinding/Procgen/Spatial 5个模块的完整测试
This commit is contained in:
yhh
2025-12-26 22:09:01 +08:00
parent 4a16e30794
commit 881ffad3bc
11 changed files with 1460 additions and 4 deletions

View File

@@ -0,0 +1,26 @@
{
"name": "@esengine/demos",
"version": "1.0.0",
"private": true,
"description": "Demo tests for ESEngine modules documentation",
"type": "module",
"scripts": {
"test": "tsx src/index.ts",
"test:timer": "tsx src/timer.demo.ts",
"test:fsm": "tsx src/fsm.demo.ts",
"test:pathfinding": "tsx src/pathfinding.demo.ts",
"test:procgen": "tsx src/procgen.demo.ts",
"test:spatial": "tsx src/spatial.demo.ts"
},
"dependencies": {
"@esengine/timer": "workspace:*",
"@esengine/fsm": "workspace:*",
"@esengine/pathfinding": "workspace:*",
"@esengine/procgen": "workspace:*",
"@esengine/spatial": "workspace:*"
},
"devDependencies": {
"tsx": "^4.7.0",
"typescript": "^5.8.3"
}
}