docs(toolchain): update pnpm 12 / Node 24 requirements

This commit is contained in:
unanmed 2026-09-21 16:27:42 +08:00
parent 1dd3ad41cc
commit d09dc3b4a0
3 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@
## Context
- **技术栈**TypeScript 6 + Vue 3 + 自研 WebGL2 渲染器 + Vite 7 + pnpm 10 monorepo数据端独立打包为 IIFE 供 Node 回放验证。
- **技术栈**TypeScript 6 + Vue 3 + 自研 WebGL2 渲染器 + Vite 7 + pnpm 12 monorepo数据端独立打包为 IIFE 供 Node 回放验证。
- **重构背景**:从旧 mota-js 运行时(`public/`)逐步重构,通过 `Patch` 桥接 legacy 全局变量。渲染端先完成重构;数据端 L0L3 已落地,并通过 Phase 3 / Phase 6 / Phase 7 的独立 Node replay、单测与质量门禁验收。
- **双端约束**:数据端无 DOM渲染相关代码必须用 `r()`/`rf()` 门控或走 `hook` 事件,渲染端被动、不向数据端推送更新。
- **协作模型**:接口/架构设计由用户主导AI 负责接口实现与单元测试AI 可在验证通过后自行创建 git commit无需用户逐次审批。

View File

@ -16,11 +16,11 @@
## Runtime
**Environment:**
- Node.js `^20.0.0 || >=22.0.0` (per `dev.md`)
- Node.js `^24.0.0` (per `dev.md`)
- Browsers supporting ESNext; production build targets `Chrome >= 56`, `Firefox >= 51`, `Edge >= 79`, `Safari >= 15`, `Opera >= 43` via `@vitejs/plugin-legacy` (`script/build-game.ts`)
**Package Manager:**
- pnpm `>= 10.0.0` (per `dev.md`)
- pnpm `>= 12.0.0` (per `dev.md`)
- Lockfile: `pnpm-lock.yaml` (present)
- Workspace: `pnpm-workspace.yaml` — globs `packages/*`, `packages-user/*`, and `src/`; `onlyBuiltDependencies`: `core-js`, `esbuild`, `ttf2woff2`, `vue-demi`
@ -97,7 +97,7 @@
## Platform Requirements
**Development:**
- Node.js 20/22+, pnpm 10+, VSCode (recommended extensions: `dbaeumer.vscode-eslint`, `esbenp.prettier-vscode`, `vue.volar`, `slevesque.shader`, `tobermory.es6-string-html` in `.vscode/extensions.json`).
- Node.js 24+, pnpm 12+, VSCode (recommended extensions: `dbaeumer.vscode-eslint`, `esbenp.prettier-vscode`, `vue.volar`, `slevesque.shader`, `tobermory.es6-string-html` in `.vscode/extensions.json`).
- Run `pnpm dev` (Vite on 5173 + Express editor server on 3000) or `pnpm test`.
**Production:**

4
dev.md
View File

@ -11,8 +11,8 @@
## 开发环境
- `node.js ^20.0.0 || >=22.0.0`
- `pnpm >= 10.0.0`
- `node.js ^24.0.0`
- `pnpm >= 12.0.0`
- 任意支持 `ESNext` 特性的浏览器
**建议使用 `vscode`,搭配 `prettier` `eslint` 插件。**