@esengine/ecs-framework 2.0.5 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/bin/Core.js +23 -21
  2. package/bin/Core.js.map +1 -1
  3. package/bin/ECS/Component.js +5 -1
  4. package/bin/ECS/Component.js.map +1 -1
  5. package/bin/ECS/Components/IUpdatable.js +7 -2
  6. package/bin/ECS/Components/IUpdatable.js.map +1 -1
  7. package/bin/ECS/Components/SceneComponent.js +5 -1
  8. package/bin/ECS/Components/SceneComponent.js.map +1 -1
  9. package/bin/ECS/Core/BitMaskOptimizer.d.ts +75 -0
  10. package/bin/ECS/Core/BitMaskOptimizer.d.ts.map +1 -0
  11. package/bin/ECS/Core/BitMaskOptimizer.js +165 -0
  12. package/bin/ECS/Core/BitMaskOptimizer.js.map +1 -0
  13. package/bin/ECS/Core/ComponentPool.d.ts +72 -0
  14. package/bin/ECS/Core/ComponentPool.d.ts.map +1 -0
  15. package/bin/ECS/Core/ComponentPool.js +128 -0
  16. package/bin/ECS/Core/ComponentPool.js.map +1 -0
  17. package/bin/ECS/Core/ComponentStorage.js +9 -3
  18. package/bin/ECS/Core/ComponentStorage.js.map +1 -1
  19. package/bin/ECS/Core/EventSystem.js +13 -7
  20. package/bin/ECS/Core/EventSystem.js.map +1 -1
  21. package/bin/ECS/Core/FluentAPI.js +24 -17
  22. package/bin/ECS/Core/FluentAPI.js.map +1 -1
  23. package/bin/ECS/Core/IndexUpdateBatcher.d.ts +100 -0
  24. package/bin/ECS/Core/IndexUpdateBatcher.d.ts.map +1 -0
  25. package/bin/ECS/Core/IndexUpdateBatcher.js +223 -0
  26. package/bin/ECS/Core/IndexUpdateBatcher.js.map +1 -0
  27. package/bin/ECS/Core/QuerySystem.d.ts +292 -444
  28. package/bin/ECS/Core/QuerySystem.d.ts.map +1 -1
  29. package/bin/ECS/Core/QuerySystem.js +661 -1075
  30. package/bin/ECS/Core/QuerySystem.js.map +1 -1
  31. package/bin/ECS/CoreEvents.js +5 -2
  32. package/bin/ECS/CoreEvents.js.map +1 -1
  33. package/bin/ECS/Entity.js +18 -14
  34. package/bin/ECS/Entity.js.map +1 -1
  35. package/bin/ECS/Scene.d.ts +18 -2
  36. package/bin/ECS/Scene.d.ts.map +1 -1
  37. package/bin/ECS/Scene.js +72 -27
  38. package/bin/ECS/Scene.js.map +1 -1
  39. package/bin/ECS/Systems/EntitySystem.js +9 -5
  40. package/bin/ECS/Systems/EntitySystem.js.map +1 -1
  41. package/bin/ECS/Systems/IntervalSystem.js +8 -4
  42. package/bin/ECS/Systems/IntervalSystem.js.map +1 -1
  43. package/bin/ECS/Systems/PassiveSystem.js +6 -2
  44. package/bin/ECS/Systems/PassiveSystem.js.map +1 -1
  45. package/bin/ECS/Systems/ProcessingSystem.js +6 -2
  46. package/bin/ECS/Systems/ProcessingSystem.js.map +1 -1
  47. package/bin/ECS/Systems/index.js +11 -4
  48. package/bin/ECS/Systems/index.js.map +1 -1
  49. package/bin/ECS/Utils/Bits.js +5 -1
  50. package/bin/ECS/Utils/Bits.js.map +1 -1
  51. package/bin/ECS/Utils/ComponentTypeManager.js +8 -4
  52. package/bin/ECS/Utils/ComponentTypeManager.js.map +1 -1
  53. package/bin/ECS/Utils/EntityList.js +5 -1
  54. package/bin/ECS/Utils/EntityList.js.map +1 -1
  55. package/bin/ECS/Utils/EntityProcessorList.js +5 -1
  56. package/bin/ECS/Utils/EntityProcessorList.js.map +1 -1
  57. package/bin/ECS/Utils/IdentifierPool.js +5 -1
  58. package/bin/ECS/Utils/IdentifierPool.js.map +1 -1
  59. package/bin/ECS/Utils/Matcher.js +8 -4
  60. package/bin/ECS/Utils/Matcher.js.map +1 -1
  61. package/bin/ECS/Utils/index.js +15 -6
  62. package/bin/ECS/Utils/index.js.map +1 -1
  63. package/bin/ECS/index.js +27 -6
  64. package/bin/ECS/index.js.map +1 -1
  65. package/bin/Testing/Performance/benchmark.d.ts +6 -0
  66. package/bin/Testing/Performance/benchmark.d.ts.map +1 -0
  67. package/bin/Testing/Performance/benchmark.js +639 -0
  68. package/bin/Testing/Performance/benchmark.js.map +1 -0
  69. package/bin/Testing/Unit/bitmask-optimizer.test.d.ts +2 -0
  70. package/bin/Testing/Unit/bitmask-optimizer.test.d.ts.map +1 -0
  71. package/bin/Testing/Unit/bitmask-optimizer.test.js +164 -0
  72. package/bin/Testing/Unit/bitmask-optimizer.test.js.map +1 -0
  73. package/bin/Testing/Unit/component-pool.test.d.ts +5 -0
  74. package/bin/Testing/Unit/component-pool.test.d.ts.map +1 -0
  75. package/bin/Testing/Unit/component-pool.test.js +149 -0
  76. package/bin/Testing/Unit/component-pool.test.js.map +1 -0
  77. package/bin/Testing/test-runner.d.ts +51 -0
  78. package/bin/Testing/test-runner.d.ts.map +1 -0
  79. package/bin/Testing/test-runner.js +159 -0
  80. package/bin/Testing/test-runner.js.map +1 -0
  81. package/bin/Types/index.js +7 -4
  82. package/bin/Types/index.js.map +1 -1
  83. package/bin/Utils/Emitter.js +7 -2
  84. package/bin/Utils/Emitter.js.map +1 -1
  85. package/bin/Utils/Extensions/NumberExtension.js +5 -1
  86. package/bin/Utils/Extensions/NumberExtension.js.map +1 -1
  87. package/bin/Utils/Extensions/TypeUtils.js +5 -1
  88. package/bin/Utils/Extensions/TypeUtils.js.map +1 -1
  89. package/bin/Utils/Extensions/index.js +7 -2
  90. package/bin/Utils/Extensions/index.js.map +1 -1
  91. package/bin/Utils/GlobalManager.js +5 -1
  92. package/bin/Utils/GlobalManager.js.map +1 -1
  93. package/bin/Utils/PerformanceMonitor.js +9 -5
  94. package/bin/Utils/PerformanceMonitor.js.map +1 -1
  95. package/bin/Utils/Pool.js +9 -3
  96. package/bin/Utils/Pool.js.map +1 -1
  97. package/bin/Utils/Time.js +5 -1
  98. package/bin/Utils/Time.js.map +1 -1
  99. package/bin/Utils/Timers/ITimer.js +2 -1
  100. package/bin/Utils/Timers/Timer.js +7 -3
  101. package/bin/Utils/Timers/Timer.js.map +1 -1
  102. package/bin/Utils/Timers/TimerManager.js +8 -4
  103. package/bin/Utils/Timers/TimerManager.js.map +1 -1
  104. package/bin/Utils/WasmCore.d.ts +234 -0
  105. package/bin/Utils/WasmCore.d.ts.map +1 -0
  106. package/bin/Utils/WasmCore.js +634 -0
  107. package/bin/Utils/WasmCore.js.map +1 -0
  108. package/bin/Utils/index.d.ts +10 -0
  109. package/bin/Utils/index.d.ts.map +1 -1
  110. package/bin/Utils/index.js +36 -5
  111. package/bin/Utils/index.js.map +1 -1
  112. package/bin/index.d.ts +1 -2
  113. package/bin/index.d.ts.map +1 -1
  114. package/bin/index.js +42 -14
  115. package/bin/index.js.map +1 -1
  116. package/package.json +54 -74
@@ -1,6 +1,37 @@
1
- // 工具类导出
2
- export * from './Extensions';
3
- export * from './Pool';
4
- export * from './PerformanceMonitor';
5
- export { Time } from './Time';
1
+ "use strict";
2
+ /**
3
+ * 工具模块导出
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.Query = exports.initializeEcs = exports.ecsCore = exports.WasmEcsCore = exports.Time = void 0;
21
+ __exportStar(require("./Extensions"), exports);
22
+ __exportStar(require("./Pool"), exports);
23
+ __exportStar(require("./Emitter"), exports);
24
+ __exportStar(require("./GlobalManager"), exports);
25
+ __exportStar(require("./PerformanceMonitor"), exports);
26
+ var Time_1 = require("./Time");
27
+ Object.defineProperty(exports, "Time", { enumerable: true, get: function () { return Time_1.Time; } });
28
+ /**
29
+ * WebAssembly核心模块
30
+ * 提供高性能的ECS查询和计算功能
31
+ */
32
+ var WasmCore_1 = require("./WasmCore");
33
+ Object.defineProperty(exports, "WasmEcsCore", { enumerable: true, get: function () { return WasmCore_1.WasmEcsCore; } });
34
+ Object.defineProperty(exports, "ecsCore", { enumerable: true, get: function () { return WasmCore_1.ecsCore; } });
35
+ Object.defineProperty(exports, "initializeEcs", { enumerable: true, get: function () { return WasmCore_1.initializeEcs; } });
36
+ Object.defineProperty(exports, "Query", { enumerable: true, get: function () { return WasmCore_1.Query; } });
6
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Utils/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Utils/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,yCAAuB;AACvB,4CAA0B;AAC1B,kDAAgC;AAChC,uDAAqC;AACrC,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb;;;GAGG;AACH,uCASoB;AARhB,uGAAA,WAAW,OAAA;AACX,mGAAA,OAAO,OAAA;AACP,yGAAA,aAAa,OAAA;AACb,iGAAA,KAAK,OAAA"}
package/bin/index.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  /**
2
2
  * ECS Framework - 轻量级实体组件系统框架
3
3
  * 适用于Laya、Cocos等游戏引擎的小游戏开发
4
- * @version 2.0.0
5
- * @author ECS Framework Team
6
4
  */
7
5
  export { Core } from './Core';
8
6
  export { CoreEvents } from './ECS/CoreEvents';
@@ -15,5 +13,6 @@ export * from './ECS';
15
13
  export * from './Utils/Pool';
16
14
  export * from './Utils/PerformanceMonitor';
17
15
  export * from './Utils/Extensions';
16
+ export { WasmEcsCore, ecsCore, initializeEcs, Query, EntityId, ComponentMask, QueryResult } from './Utils/WasmCore';
18
17
  export * from './Types';
19
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAG7C,cAAc,OAAO,CAAC;AAGtB,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AAGnC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAG7C,cAAc,OAAO,CAAC;AAGtB,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EACH,WAAW,EACX,OAAO,EACP,aAAa,EACb,KAAK,EACL,QAAQ,EACR,aAAa,EACb,WAAW,EACd,MAAM,kBAAkB,CAAC;AAG1B,cAAc,SAAS,CAAC"}
package/bin/index.js CHANGED
@@ -1,23 +1,51 @@
1
+ "use strict";
1
2
  /**
2
3
  * ECS Framework - 轻量级实体组件系统框架
3
4
  * 适用于Laya、Cocos等游戏引擎的小游戏开发
4
- * @version 2.0.0
5
- * @author ECS Framework Team
6
5
  */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.Query = exports.initializeEcs = exports.ecsCore = exports.WasmEcsCore = exports.Timer = exports.TimerManager = exports.GlobalManager = exports.FuncPack = exports.Emitter = exports.CoreEvents = exports.Core = void 0;
7
22
  // 核心模块
8
- export { Core } from './Core';
23
+ var Core_1 = require("./Core");
24
+ Object.defineProperty(exports, "Core", { enumerable: true, get: function () { return Core_1.Core; } });
9
25
  // 核心事件和管理器
10
- export { CoreEvents } from './ECS/CoreEvents';
11
- export { Emitter, FuncPack } from './Utils/Emitter';
12
- export { GlobalManager } from './Utils/GlobalManager';
13
- export { TimerManager } from './Utils/Timers/TimerManager';
14
- export { Timer } from './Utils/Timers/Timer';
15
- // ECS核心
16
- export * from './ECS';
26
+ var CoreEvents_1 = require("./ECS/CoreEvents");
27
+ Object.defineProperty(exports, "CoreEvents", { enumerable: true, get: function () { return CoreEvents_1.CoreEvents; } });
28
+ var Emitter_1 = require("./Utils/Emitter");
29
+ Object.defineProperty(exports, "Emitter", { enumerable: true, get: function () { return Emitter_1.Emitter; } });
30
+ Object.defineProperty(exports, "FuncPack", { enumerable: true, get: function () { return Emitter_1.FuncPack; } });
31
+ var GlobalManager_1 = require("./Utils/GlobalManager");
32
+ Object.defineProperty(exports, "GlobalManager", { enumerable: true, get: function () { return GlobalManager_1.GlobalManager; } });
33
+ var TimerManager_1 = require("./Utils/Timers/TimerManager");
34
+ Object.defineProperty(exports, "TimerManager", { enumerable: true, get: function () { return TimerManager_1.TimerManager; } });
35
+ var Timer_1 = require("./Utils/Timers/Timer");
36
+ Object.defineProperty(exports, "Timer", { enumerable: true, get: function () { return Timer_1.Timer; } });
37
+ // ECS核心组件
38
+ __exportStar(require("./ECS"), exports);
17
39
  // 工具类
18
- export * from './Utils/Pool';
19
- export * from './Utils/PerformanceMonitor';
20
- export * from './Utils/Extensions';
40
+ __exportStar(require("./Utils/Pool"), exports);
41
+ __exportStar(require("./Utils/PerformanceMonitor"), exports);
42
+ __exportStar(require("./Utils/Extensions"), exports);
43
+ // WebAssembly核心模块
44
+ var WasmCore_1 = require("./Utils/WasmCore");
45
+ Object.defineProperty(exports, "WasmEcsCore", { enumerable: true, get: function () { return WasmCore_1.WasmEcsCore; } });
46
+ Object.defineProperty(exports, "ecsCore", { enumerable: true, get: function () { return WasmCore_1.ecsCore; } });
47
+ Object.defineProperty(exports, "initializeEcs", { enumerable: true, get: function () { return WasmCore_1.initializeEcs; } });
48
+ Object.defineProperty(exports, "Query", { enumerable: true, get: function () { return WasmCore_1.Query; } });
21
49
  // 类型定义
22
- export * from './Types';
50
+ __exportStar(require("./Types"), exports);
23
51
  //# sourceMappingURL=index.js.map
package/bin/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO;AACP,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,WAAW;AACX,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,QAAQ;AACR,cAAc,OAAO,CAAC;AAEtB,MAAM;AACN,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AAEnC,OAAO;AACP,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAEH,OAAO;AACP,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AAEb,WAAW;AACX,+CAA8C;AAArC,wGAAA,UAAU,OAAA;AACnB,2CAAoD;AAA3C,kGAAA,OAAO,OAAA;AAAE,mGAAA,QAAQ,OAAA;AAC1B,uDAAsD;AAA7C,8GAAA,aAAa,OAAA;AACtB,4DAA2D;AAAlD,4GAAA,YAAY,OAAA;AAErB,8CAA6C;AAApC,8FAAA,KAAK,OAAA;AAEd,UAAU;AACV,wCAAsB;AAEtB,MAAM;AACN,+CAA6B;AAC7B,6DAA2C;AAC3C,qDAAmC;AAEnC,kBAAkB;AAClB,6CAQ0B;AAPtB,uGAAA,WAAW,OAAA;AACX,mGAAA,OAAO,OAAA;AACP,yGAAA,aAAa,OAAA;AACb,iGAAA,KAAK,OAAA;AAMT,OAAO;AACP,0CAAwB"}
package/package.json CHANGED
@@ -1,74 +1,54 @@
1
- {
2
- "name": "@esengine/ecs-framework",
3
- "version": "2.0.5",
4
- "description": "用于Laya、Cocos等游戏引擎的高性能ECS框架",
5
- "main": "bin/index.js",
6
- "types": "bin/index.d.ts",
7
- "files": [
8
- "bin/**/*",
9
- "README.md",
10
- "LICENSE"
11
- ],
12
- "keywords": [
13
- "ecs",
14
- "entity-component-system",
15
- "game-engine",
16
- "typescript",
17
- "laya",
18
- "cocos",
19
- "egret"
20
- ],
21
- "scripts": {
22
- "build": "tsc",
23
- "build:watch": "tsc --watch",
24
- "build:dev": "tsc -p tsconfig.dev.json",
25
- "build:dev:watch": "tsc -p tsconfig.dev.json --watch",
26
- "clean": "rimraf bin",
27
- "clean:dev": "rimraf dev-bin",
28
- "clean:all": "rimraf bin dev-bin",
29
- "rebuild": "npm run clean && npm run build",
30
- "rebuild:dev": "npm run clean:dev && npm run build:dev",
31
- "test": "jest",
32
- "test:watch": "jest --watch",
33
- "test:coverage": "jest --coverage",
34
- "test:framework:benchmark": "npm run build:dev && node dev-bin/Testing/framework-benchmark-test.js",
35
- "lint": "eslint src --ext .ts",
36
- "lint:fix": "eslint src --ext .ts --fix",
37
- "prepublishOnly": "npm run rebuild",
38
- "publish:patch": "npm run rebuild && npm version patch && npm publish",
39
- "publish:minor": "npm run rebuild && npm version minor && npm publish",
40
- "publish:major": "npm run rebuild && npm version major && npm publish",
41
- "pack:check": "npm run rebuild && npm pack --dry-run",
42
- "check": "node scripts/check-publish.js"
43
- },
44
- "author": "yhh",
45
- "license": "MIT",
46
- "devDependencies": {
47
- "@babel/core": "^7.27.4",
48
- "@babel/preset-env": "^7.27.2",
49
- "browserify": "^17.0.1",
50
- "gulp": "^5.0.1",
51
- "gulp-babel": "^8.0.0",
52
- "gulp-concat": "^2.6.1",
53
- "gulp-inject-string": "^1.1.2",
54
- "gulp-terser": "^2.1.0",
55
- "gulp-string-replace": "^1.1.2",
56
- "gulp-typescript": "^6.0.0-alpha.1",
57
- "gulp-uglify": "^3.0.2",
58
- "merge2": "^1.4.1",
59
- "rimraf": "^5.0.0",
60
- "tsify": "^5.0.4",
61
- "typedoc": "^0.28.5",
62
- "typescript": "^5.8.3",
63
- "vinyl-source-stream": "^2.0.0",
64
- "watchify": "^4.0.0"
65
- },
66
- "publishConfig": {
67
- "access": "public"
68
- },
69
- "repository": {
70
- "type": "git",
71
- "url": "https://github.com/esengine/ecs-framework.git"
72
- },
73
- "dependencies": {}
74
- }
1
+ {
2
+ "name": "@esengine/ecs-framework",
3
+ "version": "2.0.7",
4
+ "description": "用于Laya、Cocos等游戏引擎的高性能ECS框架",
5
+ "main": "bin/index.js",
6
+ "types": "bin/index.d.ts",
7
+ "files": [
8
+ "bin/**/*",
9
+ "README.md",
10
+ "LICENSE"
11
+ ],
12
+ "keywords": [
13
+ "ecs",
14
+ "entity-component-system",
15
+ "game-engine",
16
+ "typescript",
17
+ "laya",
18
+ "cocos",
19
+ "egret"
20
+ ],
21
+ "scripts": {
22
+ "clean": "rimraf bin wasm",
23
+ "prebuild": "npm run clean",
24
+ "build": "tsc",
25
+ "build:watch": "tsc --watch",
26
+ "rebuild": "npm run clean && npm run build",
27
+ "test:benchmark": "npm run build && node bin/Testing/Performance/benchmark.js",
28
+ "test:unit": "npm run build && node bin/Testing/test-runner.js",
29
+ "benchmark": "node scripts/benchmark.js",
30
+ "prepublishOnly": "npm run build",
31
+ "version:patch": "npm version patch",
32
+ "version:minor": "npm version minor",
33
+ "version:major": "npm version major",
34
+ "publish:patch": "npm run version:patch && npm publish",
35
+ "publish:minor": "npm run version:minor && npm publish",
36
+ "publish:major": "npm run version:major && npm publish",
37
+ "publish": "npm publish"
38
+ },
39
+ "author": "yhh",
40
+ "license": "MIT",
41
+ "devDependencies": {
42
+ "@types/node": "^20.19.0",
43
+ "rimraf": "^5.0.0",
44
+ "typescript": "^5.8.3"
45
+ },
46
+ "publishConfig": {
47
+ "access": "public"
48
+ },
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "https://github.com/esengine/ecs-framework.git"
52
+ },
53
+ "optionalDependencies": {}
54
+ }