mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-21 04:41:48 +08:00
⚡️ perf(dev): 优化 Wails 开发启动与 CI 构建耗时
- 新增 Wails 快速开发启动脚本,跳过非必要构建与绑定生成 - 优化前端依赖安装状态判断,减少重复 npm install - 固定 CI Wails CLI 版本并增加 node_modules 缓存 - 更新开发文档中的快速启动说明
This commit is contained in:
@@ -133,7 +133,7 @@ GoNavi is designed for developers and DBAs who need a unified desktop experience
|
||||
- [Go](https://go.dev/dl/) 1.21+
|
||||
- [Node.js](https://nodejs.org/) 18+
|
||||
- [Wails CLI](https://wails.io/docs/gettingstarted/installation):
|
||||
`go install github.com/wailsapp/wails/v2/cmd/wails@latest`
|
||||
`go install github.com/wailsapp/wails/v2/cmd/wails@v2.11.0`
|
||||
|
||||
### Development Mode
|
||||
|
||||
@@ -144,6 +144,12 @@ cd GoNavi
|
||||
|
||||
# Start development with hot reload
|
||||
wails dev
|
||||
|
||||
# Faster local startup when exported Go method signatures are unchanged
|
||||
node tools/wails-fast-dev.mjs
|
||||
|
||||
# Refresh Wails JS bindings after changing exported Go method signatures
|
||||
node tools/wails-fast-dev.mjs --refresh-bindings
|
||||
```
|
||||
|
||||
### Build
|
||||
|
||||
Reference in New Issue
Block a user