新增wasm以优化实体update速度
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@esengine/ecs-framework",
|
||||
"version": "2.0.5",
|
||||
"version": "2.1.0",
|
||||
"description": "用于Laya、Cocos等游戏引擎的高性能ECS框架",
|
||||
"main": "bin/index.js",
|
||||
"types": "bin/index.d.ts",
|
||||
@@ -19,49 +19,30 @@
|
||||
"egret"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"clean": "rimraf bin wasm",
|
||||
"clean:wasm": "rimraf src/wasm/rust-ecs-core/pkg src/wasm/rust-ecs-core/target",
|
||||
"build:wasm": "cd src/wasm/rust-ecs-core && wasm-pack build --target web --out-dir ../../../bin/wasm --release",
|
||||
"build:ts": "tsc",
|
||||
"prebuild": "npm run clean",
|
||||
"build": "npm run build:wasm && npm run build:ts",
|
||||
"build:watch": "tsc --watch",
|
||||
"build:dev": "tsc -p tsconfig.dev.json",
|
||||
"build:dev:watch": "tsc -p tsconfig.dev.json --watch",
|
||||
"clean": "rimraf bin",
|
||||
"clean:dev": "rimraf dev-bin",
|
||||
"clean:all": "rimraf bin dev-bin",
|
||||
"rebuild": "npm run clean && npm run build",
|
||||
"rebuild:dev": "npm run clean:dev && npm run build:dev",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
"test:coverage": "jest --coverage",
|
||||
"test:framework:benchmark": "npm run build:dev && node dev-bin/Testing/framework-benchmark-test.js",
|
||||
"lint": "eslint src --ext .ts",
|
||||
"lint:fix": "eslint src --ext .ts --fix",
|
||||
"prepublishOnly": "npm run rebuild",
|
||||
"publish:patch": "npm run rebuild && npm version patch && npm publish",
|
||||
"publish:minor": "npm run rebuild && npm version minor && npm publish",
|
||||
"publish:major": "npm run rebuild && npm version major && npm publish",
|
||||
"pack:check": "npm run rebuild && npm pack --dry-run",
|
||||
"check": "node scripts/check-publish.js"
|
||||
"rebuild": "npm run clean && npm run clean:wasm && npm run build",
|
||||
"test:benchmark": "npm run build && node bin/Testing/Performance/benchmark.js",
|
||||
"test:unit": "npm run build && node bin/Testing/test-runner.js",
|
||||
"benchmark": "node scripts/benchmark.js",
|
||||
"preversion": "npm run rebuild",
|
||||
"postversion": "npm publish",
|
||||
"publish:patch": "npm version patch",
|
||||
"publish:minor": "npm version minor",
|
||||
"publish:major": "npm version major",
|
||||
"publish": "npm publish"
|
||||
},
|
||||
"author": "yhh",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.27.4",
|
||||
"@babel/preset-env": "^7.27.2",
|
||||
"browserify": "^17.0.1",
|
||||
"gulp": "^5.0.1",
|
||||
"gulp-babel": "^8.0.0",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-inject-string": "^1.1.2",
|
||||
"gulp-terser": "^2.1.0",
|
||||
"gulp-string-replace": "^1.1.2",
|
||||
"gulp-typescript": "^6.0.0-alpha.1",
|
||||
"gulp-uglify": "^3.0.2",
|
||||
"merge2": "^1.4.1",
|
||||
"@types/node": "^20.19.0",
|
||||
"rimraf": "^5.0.0",
|
||||
"tsify": "^5.0.4",
|
||||
"typedoc": "^0.28.5",
|
||||
"typescript": "^5.8.3",
|
||||
"vinyl-source-stream": "^2.0.0",
|
||||
"watchify": "^4.0.0"
|
||||
"typescript": "^5.8.3"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
@@ -70,5 +51,5 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/esengine/ecs-framework.git"
|
||||
},
|
||||
"dependencies": {}
|
||||
"optionalDependencies": {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user