dzkcc-mflow 0.0.24 → 0.0.26

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.
package/README.md CHANGED
@@ -182,11 +182,11 @@ userModel.name; // ✅ 有完整的代码补全
182
182
 
183
183
  **维护类型映射**:
184
184
 
185
- ```bash
186
- npm run generate:types # 自动生成类型映射
187
- ```
185
+ 框架提供了自动类型生成工具,在 Cocos Creator 编辑器中使用:
186
+
187
+ **编辑器菜单**:**mflow-tools -> generate-types**
188
188
 
189
- 📖 **查看文档**: [类型自动推断](./docs/TYPE_INFERENCE.md)
189
+ 📖 **查看文档**: [类型自动推断](./docs/TYPE_INFERENCE.md) | [类型生成工具](./docs/TYPE_GENERATION.md)
190
190
 
191
191
  ### 9. 开发工具
192
192
 
@@ -278,6 +278,7 @@ mf.reddot.setCount('main/bag', 5);
278
278
  | [网络通信](./docs/NETWORK.md) | HTTP 和 WebSocket |
279
279
  | [红点系统](./docs/REDDOT_SYSTEM.md) | 红点提示管理 |
280
280
  | [类型自动推断](./docs/TYPE_INFERENCE.md) | 类型映射和自动推断 |
281
+ | [类型生成工具](./docs/TYPE_GENERATION.md) | 自动生成类型映射文件 |
281
282
  | [开发工具](./docs/DEV_TOOLS.md) | 编辑器插件使用 |
282
283
  | [完整示例](./docs/COMPLETE_EXAMPLE.md) | 塔防游戏示例 |
283
284
  | [最佳实践](./docs/BEST_PRACTICES.md) | 设计原则和规范 |
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dzkcc-mflow",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "A modular design and process management framework developed for the cocos engine, suitable for decoupling and dependency injection.",
5
5
  "author": "duanzhk",
6
6
  "license": "MIT",
@@ -29,8 +29,7 @@
29
29
  "watch": "tsc -w",
30
30
  "build": "rm -rf dist && rollup -c && node ./scripts/build-tools.js",
31
31
  "pub-beta": "npm version patch && npm publish --tag beta",
32
- "postinstall": "node ./scripts/postinstall.js",
33
- "generate:types": "node ./scripts/generate-type-map.js"
32
+ "postinstall": "node ./scripts/postinstall.js"
34
33
  },
35
34
  "devDependencies": {
36
35
  "@cocos/creator-types": "^3.8.3",