新增protobuf依赖(为网络和序列化做准备)

更新readme
This commit is contained in:
YHH
2025-08-06 17:04:02 +08:00
parent 51e6bba2a7
commit 8cfba4a166
21 changed files with 3816 additions and 344 deletions

View File

@@ -4,6 +4,9 @@
"description": "用于Laya、Cocos Creator等JavaScript游戏引擎的高性能ECS框架",
"main": "bin/index.js",
"types": "bin/index.d.ts",
"bin": {
"ecs-proto": "./bin/ecs-proto"
},
"files": [
"bin/**/*",
"README.md",
@@ -36,7 +39,10 @@
"test:performance": "jest --config jest.performance.config.js",
"test:coverage": "jest --coverage",
"test:ci": "jest --ci --coverage",
"test:clear": "jest --clearCache"
"test:clear": "jest --clearCache",
"proto:generate": "ecs-proto generate",
"proto:compile": "ecs-proto compile",
"proto:build": "ecs-proto build"
},
"author": "yhh",
"license": "MIT",
@@ -64,6 +70,8 @@
"dependencies": {
"@types/multer": "^1.4.13",
"@types/ws": "^8.18.1",
"protobufjs": "^7.5.3",
"reflect-metadata": "^0.2.2",
"ws": "^8.18.2"
}
}