Dev coolfish#44
Merged
Merged
Conversation
BREAKING CHANGE: 从 Box3JS NeoForge 资源中移除了基础 TypeScript 配置模板文件,可能影响依赖此配置的现有 TypeScript 项目。
完全重写 assets/ 目录文档,为手动文件创建需求提供全面指导。新文档包括: - 详细的目录结构及手动创建要求 - 方块状态 JSON 格式规范及示例 - 使用 minecraft:block/cube 父模型的方块模型配置 - 纹理命名规范及使用 .mcmeta 文件支持动画 - 物品模型规范,涵盖方块物品和普通物品 - 使用分层系统的自定义盔甲纹理指南 - 多语言文件格式及翻译键示例 - 完整的项目结构示例供参考 文档现在明确区分了自动生成的文件(仅 sounds.json)和手动创建的资源(模型、纹理、方块状态)。 style(template): 添加 ts-ignore 指令以提升类型检查兼容性 feat(template): 将 TypeScript 配置迁移至项目引用方案 移除单一的 tsconfig.base.json 方案,改用项目引用结构分离客户端和服务端配置。包括: - 创建根 tsconfig.json,通过项目引用关联客户端和服务端 - 配置独立的 tsconfig.client.json,使用 ESNext 目标和 bundler 模块解析 - 配置独立的 tsconfig.server.json,使用与客户端相同的设置 - 在启用 isolatedModules 的同时保持严格的类型检查 - 支持 types/client/index.d.ts 中的客户端类型定义 - 支持 types/server/index.d.ts 中的服务端类型定义
更新文档以反映新的 TypeScript 项目结构,其中 tsconfig.json 作为根项目引用文件,管理独立的客户端和服务端配置。 feat(script): 将纯 JS 正则表达式实现替换为基于 Java 的解决方案 移除自定义的纯 JS 正则解析器,改用基于 Java 的正则辅助函数,使用 java.util.regex.Pattern 和 java.util.regex.Matcher。通过 Rhino 的 Java 互操作将正则处理委托给 JDK 的正则引擎,为所有现有脚本提供完整的正则表达式功能。 docs(database): 移除过时的正则字面量警告 移除关于避免使用正则字面量的警告,因为新的基于 Java 的正则实现已通过 Babel 构建步骤转换为辅助函数调用,完全支持正则表达式字面量。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.