feat(mini-program): 添加 H5 开发工作流支持
实施内容: - 创建 start-h5-dev.bat 快捷启动脚本 - 更新 CLAUDE.md 添加 H5 开发模式说明 - 创建微信开发者工具配置指南 配套文档: - docs/superpowers/specs/2026-04-07-mini-program-dev-workflow-design.md (设计文档) - docs/superpowers/guides/2026-04-07-wechat-devtools-config.md (配置指南) 解决 issues: 每次代码修改后需要重新登录小程序的问题 工作流:H5 模式日常开发 + 小程序模式最终验证
This commit is contained in:
@@ -125,6 +125,25 @@ npm run dev:h5
|
||||
npm run build:h5
|
||||
```
|
||||
|
||||
### mini-program(推荐开发模式)
|
||||
|
||||
**H5 开发模式**(日常开发,推荐):
|
||||
```bash
|
||||
cd mini-program
|
||||
# 或使用启动脚本
|
||||
start-h5-dev.bat
|
||||
```
|
||||
访问 `http://localhost:5173`,登录态保留,支持热更新。
|
||||
|
||||
**微信小程序开发模式**(仅用于小程序特性验证):
|
||||
```bash
|
||||
cd mini-program
|
||||
npm run dev:mp-weixin
|
||||
```
|
||||
在微信开发者工具中打开 `unpackage/dist/dev/mp-weixin`。
|
||||
|
||||
**开发工作流说明**:详见 [小程序开发工作流程设计](docs/superpowers/specs/2026-04-07-mini-program-dev-workflow-design.md)
|
||||
|
||||
### 一键部署
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user