2020-06-08 11:49:45 +08:00
|
|
|
{
|
2025-12-08 21:26:35 +08:00
|
|
|
"name": "@esengine/ecs-framework-monorepo",
|
2025-08-06 09:56:55 +08:00
|
|
|
"version": "2.1.29",
|
2025-08-07 13:29:12 +08:00
|
|
|
"description": "ECS Framework Monorepo - 高性能ECS框架及其网络插件",
|
|
|
|
|
"private": true,
|
2025-12-01 22:28:51 +08:00
|
|
|
"packageManager": "pnpm@10.22.0",
|
2025-08-07 13:29:12 +08:00
|
|
|
"workspaces": [
|
2025-12-26 14:50:35 +08:00
|
|
|
"packages/framework/*",
|
|
|
|
|
"packages/engine/*",
|
|
|
|
|
"packages/rendering/*",
|
|
|
|
|
"packages/physics/*",
|
|
|
|
|
"packages/streaming/*",
|
|
|
|
|
"packages/network-ext/*",
|
|
|
|
|
"packages/editor/*",
|
|
|
|
|
"packages/editor/plugins/*",
|
|
|
|
|
"packages/rust/*",
|
|
|
|
|
"packages/tools/*"
|
2025-06-07 20:32:43 +08:00
|
|
|
],
|
|
|
|
|
"keywords": [
|
|
|
|
|
"ecs",
|
|
|
|
|
"entity-component-system",
|
|
|
|
|
"game-engine",
|
|
|
|
|
"typescript",
|
|
|
|
|
"laya",
|
|
|
|
|
"cocos",
|
|
|
|
|
"egret"
|
|
|
|
|
],
|
2020-06-08 11:49:45 +08:00
|
|
|
"scripts": {
|
2025-12-25 23:07:44 +08:00
|
|
|
"changeset": "changeset",
|
|
|
|
|
"changeset:version": "changeset version",
|
2025-12-26 16:37:37 +08:00
|
|
|
"changeset:publish": "changeset publish",
|
2025-08-07 13:29:12 +08:00
|
|
|
"bootstrap": "lerna bootstrap",
|
2025-12-01 22:28:51 +08:00
|
|
|
"clean": "turbo run clean",
|
|
|
|
|
"build": "turbo run build",
|
|
|
|
|
"build:filter": "turbo run build --filter",
|
2025-12-08 21:26:35 +08:00
|
|
|
"build:core": "turbo run build --filter=@esengine/ecs-framework",
|
|
|
|
|
"build:math": "turbo run build --filter=@esengine/ecs-framework-math",
|
2025-12-01 22:28:51 +08:00
|
|
|
"build:editor": "turbo run build --filter=@esengine/editor-app...",
|
|
|
|
|
"build:npm": "turbo run build:npm",
|
2025-12-26 14:50:35 +08:00
|
|
|
"build:npm:core": "cd packages/framework/core && npm run build:npm",
|
|
|
|
|
"build:npm:math": "cd packages/framework/math && npm run build:npm",
|
2025-12-01 22:28:51 +08:00
|
|
|
"test": "turbo run test",
|
|
|
|
|
"test:coverage": "turbo run test:coverage",
|
|
|
|
|
"test:ci": "turbo run test:ci",
|
feat(rpc,network): 新增 RPC 库并迁移网络模块 (#364)
* feat(rpc,network): 新增 RPC 库并迁移网络模块
## @esengine/rpc (新增)
- 新增类型安全的 RPC 库,支持 WebSocket 通信
- 新增 RpcClient 类:connect/disconnect, call/send/on/off/once 方法
- 新增 RpcServer 类:Node.js WebSocket 服务端
- 新增编解码系统:支持 JSON 和 MessagePack
- 新增 TextEncoder/TextDecoder polyfill,兼容微信小游戏平台
- 新增 WebSocketAdapter 接口,支持跨平台 WebSocket 抽象
## @esengine/network (重构)
- 重构 NetworkService:拆分为 RpcService 基类和 GameNetworkService
- 新增 gameProtocol:类型安全的 API 和消息定义
- 新增类型安全便捷方法:sendInput(), onSync(), onSpawn(), onDespawn()
- 更新 NetworkPlugin 使用新的服务架构
- 移除 TSRPC 依赖,改用 @esengine/rpc
## 文档
- 新增 RPC 模块文档(中英文)
- 更新 Network 模块文档(中英文)
- 更新侧边栏导航
* fix(network,cli): 修复 CI 构建和更新 CLI 适配器
## 修复
- 在 tsconfig.build.json 添加 rpc 引用,修复类型声明生成
## CLI 更新
- 更新 nodejs 适配器使用新的 @esengine/rpc
- 生成的服务器代码使用 RpcServer 替代旧的 GameServer
- 添加 ws 和 @types/ws 依赖
- 更新 README 模板中的客户端连接示例
* chore: 添加 CLI changeset
* fix(ci): add @esengine/rpc to build and check scripts
- Add rpc package to CI build step (must build before network)
- Add rpc to type-check:framework, lint:framework, test:ci:framework
* fix(rpc,network): fix tsconfig for declaration generation
- Remove composite mode from rpc (not needed, causes CI issues)
- Remove rpc from network project references (resolves via node_modules)
- Remove unused references from network tsconfig.build.json
2025-12-28 10:54:51 +08:00
|
|
|
"test:ci:framework": "turbo run test:ci --filter=@esengine/ecs-framework --filter=@esengine/ecs-framework-math --filter=@esengine/behavior-tree --filter=@esengine/blueprint --filter=@esengine/fsm --filter=@esengine/timer --filter=@esengine/spatial --filter=@esengine/procgen --filter=@esengine/pathfinding --filter=@esengine/network-protocols --filter=@esengine/rpc --filter=@esengine/network",
|
2025-08-07 13:29:12 +08:00
|
|
|
"prepare:publish": "npm run build:npm && node scripts/pre-publish-check.cjs",
|
|
|
|
|
"sync:versions": "node scripts/sync-versions.cjs",
|
2025-08-11 10:25:28 +08:00
|
|
|
"publish:all": "npm run prepare:publish && npm run publish:all:dist",
|
2025-11-23 14:49:37 +08:00
|
|
|
"publish:all:dist": "npm run publish:core && npm run publish:math",
|
2025-12-26 14:50:35 +08:00
|
|
|
"publish:core": "cd packages/framework/core && npm run publish:npm",
|
|
|
|
|
"publish:core:patch": "cd packages/framework/core && npm run publish:patch",
|
|
|
|
|
"publish:math": "cd packages/framework/math && npm run publish:npm",
|
|
|
|
|
"publish:math:patch": "cd packages/framework/math && npm run publish:patch",
|
2025-08-07 13:29:12 +08:00
|
|
|
"publish": "lerna publish",
|
2025-09-28 12:26:51 +08:00
|
|
|
"version": "lerna version",
|
2025-10-18 21:48:44 +08:00
|
|
|
"release": "semantic-release",
|
2025-12-26 14:50:35 +08:00
|
|
|
"release:core": "cd packages/framework/core && semantic-release",
|
2025-10-18 21:48:44 +08:00
|
|
|
"contributors:add": "all-contributors add",
|
|
|
|
|
"contributors:generate": "all-contributors generate",
|
|
|
|
|
"contributors:check": "all-contributors check",
|
2025-12-27 13:28:49 +08:00
|
|
|
"docs:dev": "pnpm --filter @esengine/docs dev",
|
|
|
|
|
"docs:build": "pnpm run docs:api && pnpm --filter @esengine/docs build",
|
|
|
|
|
"docs:preview": "pnpm --filter @esengine/docs preview",
|
2025-09-28 12:26:51 +08:00
|
|
|
"docs:api": "typedoc",
|
2025-09-28 20:22:06 +08:00
|
|
|
"docs:api:watch": "typedoc --watch",
|
|
|
|
|
"update:worker-demo": "npm run build:core && cd examples/worker-system-demo && npm run build && cd ../.. && npm run copy:worker-demo",
|
2025-10-16 20:24:45 +08:00
|
|
|
"copy:worker-demo": "node scripts/update-worker-demo.js",
|
|
|
|
|
"format": "prettier --write \"packages/**/src/**/*.{ts,tsx,js,jsx}\"",
|
|
|
|
|
"format:check": "prettier --check \"packages/**/src/**/*.{ts,tsx,js,jsx}\"",
|
2025-12-01 22:28:51 +08:00
|
|
|
"type-check": "turbo run type-check",
|
feat(rpc,network): 新增 RPC 库并迁移网络模块 (#364)
* feat(rpc,network): 新增 RPC 库并迁移网络模块
## @esengine/rpc (新增)
- 新增类型安全的 RPC 库,支持 WebSocket 通信
- 新增 RpcClient 类:connect/disconnect, call/send/on/off/once 方法
- 新增 RpcServer 类:Node.js WebSocket 服务端
- 新增编解码系统:支持 JSON 和 MessagePack
- 新增 TextEncoder/TextDecoder polyfill,兼容微信小游戏平台
- 新增 WebSocketAdapter 接口,支持跨平台 WebSocket 抽象
## @esengine/network (重构)
- 重构 NetworkService:拆分为 RpcService 基类和 GameNetworkService
- 新增 gameProtocol:类型安全的 API 和消息定义
- 新增类型安全便捷方法:sendInput(), onSync(), onSpawn(), onDespawn()
- 更新 NetworkPlugin 使用新的服务架构
- 移除 TSRPC 依赖,改用 @esengine/rpc
## 文档
- 新增 RPC 模块文档(中英文)
- 更新 Network 模块文档(中英文)
- 更新侧边栏导航
* fix(network,cli): 修复 CI 构建和更新 CLI 适配器
## 修复
- 在 tsconfig.build.json 添加 rpc 引用,修复类型声明生成
## CLI 更新
- 更新 nodejs 适配器使用新的 @esengine/rpc
- 生成的服务器代码使用 RpcServer 替代旧的 GameServer
- 添加 ws 和 @types/ws 依赖
- 更新 README 模板中的客户端连接示例
* chore: 添加 CLI changeset
* fix(ci): add @esengine/rpc to build and check scripts
- Add rpc package to CI build step (must build before network)
- Add rpc to type-check:framework, lint:framework, test:ci:framework
* fix(rpc,network): fix tsconfig for declaration generation
- Remove composite mode from rpc (not needed, causes CI issues)
- Remove rpc from network project references (resolves via node_modules)
- Remove unused references from network tsconfig.build.json
2025-12-28 10:54:51 +08:00
|
|
|
"type-check:framework": "turbo run type-check --filter=@esengine/ecs-framework --filter=@esengine/ecs-framework-math --filter=@esengine/behavior-tree --filter=@esengine/blueprint --filter=@esengine/fsm --filter=@esengine/timer --filter=@esengine/spatial --filter=@esengine/procgen --filter=@esengine/pathfinding --filter=@esengine/network-protocols --filter=@esengine/rpc --filter=@esengine/network",
|
2025-12-01 22:28:51 +08:00
|
|
|
"lint": "turbo run lint",
|
feat(rpc,network): 新增 RPC 库并迁移网络模块 (#364)
* feat(rpc,network): 新增 RPC 库并迁移网络模块
## @esengine/rpc (新增)
- 新增类型安全的 RPC 库,支持 WebSocket 通信
- 新增 RpcClient 类:connect/disconnect, call/send/on/off/once 方法
- 新增 RpcServer 类:Node.js WebSocket 服务端
- 新增编解码系统:支持 JSON 和 MessagePack
- 新增 TextEncoder/TextDecoder polyfill,兼容微信小游戏平台
- 新增 WebSocketAdapter 接口,支持跨平台 WebSocket 抽象
## @esengine/network (重构)
- 重构 NetworkService:拆分为 RpcService 基类和 GameNetworkService
- 新增 gameProtocol:类型安全的 API 和消息定义
- 新增类型安全便捷方法:sendInput(), onSync(), onSpawn(), onDespawn()
- 更新 NetworkPlugin 使用新的服务架构
- 移除 TSRPC 依赖,改用 @esengine/rpc
## 文档
- 新增 RPC 模块文档(中英文)
- 更新 Network 模块文档(中英文)
- 更新侧边栏导航
* fix(network,cli): 修复 CI 构建和更新 CLI 适配器
## 修复
- 在 tsconfig.build.json 添加 rpc 引用,修复类型声明生成
## CLI 更新
- 更新 nodejs 适配器使用新的 @esengine/rpc
- 生成的服务器代码使用 RpcServer 替代旧的 GameServer
- 添加 ws 和 @types/ws 依赖
- 更新 README 模板中的客户端连接示例
* chore: 添加 CLI changeset
* fix(ci): add @esengine/rpc to build and check scripts
- Add rpc package to CI build step (must build before network)
- Add rpc to type-check:framework, lint:framework, test:ci:framework
* fix(rpc,network): fix tsconfig for declaration generation
- Remove composite mode from rpc (not needed, causes CI issues)
- Remove rpc from network project references (resolves via node_modules)
- Remove unused references from network tsconfig.build.json
2025-12-28 10:54:51 +08:00
|
|
|
"lint:framework": "turbo run lint --filter=@esengine/ecs-framework --filter=@esengine/ecs-framework-math --filter=@esengine/behavior-tree --filter=@esengine/blueprint --filter=@esengine/fsm --filter=@esengine/timer --filter=@esengine/spatial --filter=@esengine/procgen --filter=@esengine/pathfinding --filter=@esengine/network-protocols --filter=@esengine/rpc --filter=@esengine/network",
|
2025-12-01 22:28:51 +08:00
|
|
|
"lint:fix": "turbo run lint:fix",
|
2025-12-26 14:50:35 +08:00
|
|
|
"build:wasm": "cd packages/rust/engine && wasm-pack build --dev --out-dir pkg",
|
|
|
|
|
"build:wasm:release": "cd packages/rust/engine && wasm-pack build --release --out-dir pkg",
|
2025-12-03 22:15:22 +08:00
|
|
|
"copy-modules": "node scripts/copy-engine-modules.mjs"
|
2020-06-08 11:49:45 +08:00
|
|
|
},
|
|
|
|
|
"author": "yhh",
|
|
|
|
|
"license": "MIT",
|
|
|
|
|
"devDependencies": {
|
2025-12-25 23:07:44 +08:00
|
|
|
"@changesets/changelog-github": "^0.5.2",
|
|
|
|
|
"@changesets/cli": "^2.29.8",
|
2025-10-18 22:32:39 +08:00
|
|
|
"@commitlint/cli": "^18.6.0",
|
|
|
|
|
"@commitlint/config-conventional": "^18.6.0",
|
2025-11-23 14:49:37 +08:00
|
|
|
"@eslint/js": "^9.39.1",
|
2025-09-28 12:26:51 +08:00
|
|
|
"@iconify/json": "^2.2.388",
|
2025-06-09 14:51:26 +08:00
|
|
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
|
|
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
|
|
|
"@rollup/plugin-terser": "^0.4.4",
|
2025-10-18 21:48:44 +08:00
|
|
|
"@semantic-release/changelog": "^6.0.3",
|
|
|
|
|
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
|
|
|
"@semantic-release/git": "^10.0.1",
|
|
|
|
|
"@semantic-release/github": "^9.2.6",
|
|
|
|
|
"@semantic-release/npm": "^11.0.2",
|
|
|
|
|
"@semantic-release/release-notes-generator": "^12.1.0",
|
2025-10-18 22:32:39 +08:00
|
|
|
"@size-limit/preset-small-lib": "^11.0.2",
|
2025-07-18 14:59:00 +08:00
|
|
|
"@types/jest": "^29.5.14",
|
2025-06-08 21:50:50 +08:00
|
|
|
"@types/node": "^20.19.0",
|
2025-10-16 20:24:45 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^8.46.1",
|
|
|
|
|
"@typescript-eslint/parser": "^8.46.1",
|
2025-10-18 21:48:44 +08:00
|
|
|
"all-contributors-cli": "^6.26.1",
|
2025-10-16 20:24:45 +08:00
|
|
|
"eslint": "^9.37.0",
|
2025-07-18 14:59:00 +08:00
|
|
|
"jest": "^29.7.0",
|
|
|
|
|
"jest-environment-jsdom": "^29.7.0",
|
2025-08-07 13:29:12 +08:00
|
|
|
"lerna": "^8.1.8",
|
2025-10-16 20:24:45 +08:00
|
|
|
"prettier": "^3.6.2",
|
2025-06-07 20:32:43 +08:00
|
|
|
"rimraf": "^5.0.0",
|
2025-06-09 14:51:26 +08:00
|
|
|
"rollup": "^4.42.0",
|
|
|
|
|
"rollup-plugin-dts": "^6.2.1",
|
2025-10-18 21:48:44 +08:00
|
|
|
"semantic-release": "^23.0.0",
|
|
|
|
|
"semantic-release-monorepo": "^8.0.2",
|
2025-08-07 13:29:12 +08:00
|
|
|
"semver": "^7.6.3",
|
2025-10-18 22:32:39 +08:00
|
|
|
"size-limit": "^11.0.2",
|
2025-07-18 14:59:00 +08:00
|
|
|
"ts-jest": "^29.4.0",
|
2025-12-01 22:28:51 +08:00
|
|
|
"turbo": "^2.6.1",
|
2025-09-28 12:26:51 +08:00
|
|
|
"typedoc": "^0.28.13",
|
|
|
|
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
|
|
|
"typescript": "^5.8.3",
|
2025-11-23 14:49:37 +08:00
|
|
|
"typescript-eslint": "^8.47.0",
|
2025-09-28 12:26:51 +08:00
|
|
|
"unplugin-icons": "^22.3.0",
|
|
|
|
|
"vitepress": "^1.6.4"
|
2020-06-08 11:49:45 +08:00
|
|
|
},
|
2020-06-08 21:53:09 +08:00
|
|
|
"publishConfig": {
|
2025-06-07 20:32:43 +08:00
|
|
|
"access": "public"
|
2020-06-16 13:13:55 +08:00
|
|
|
},
|
2023-03-13 12:10:17 +08:00
|
|
|
"repository": {
|
|
|
|
|
"type": "git",
|
2025-12-08 21:23:37 +08:00
|
|
|
"url": "https://github.com/esengine/esengine.git"
|
2025-06-17 00:32:16 +08:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2025-06-19 18:32:32 +08:00
|
|
|
"@types/multer": "^1.4.13",
|
2025-06-17 00:32:16 +08:00
|
|
|
"@types/ws": "^8.18.1",
|
2025-09-28 21:11:17 +08:00
|
|
|
"coi-serviceworker": "^0.1.7",
|
2025-09-29 13:21:08 +08:00
|
|
|
"minigame-api-typings": "^3.8.12",
|
2025-08-06 17:04:02 +08:00
|
|
|
"protobufjs": "^7.5.3",
|
|
|
|
|
"reflect-metadata": "^0.2.2",
|
2025-06-17 00:32:16 +08:00
|
|
|
"ws": "^8.18.2"
|
2025-06-09 10:42:19 +08:00
|
|
|
}
|
2025-06-09 15:55:26 +08:00
|
|
|
}
|