Skip to content

Commit 6845cd5

Browse files
authored
standalone fixes, linting errors, speedups, QOL changes ported from wave-12 branch (#2271)
1 parent f4b28bd commit 6845cd5

File tree

9 files changed

+499
-7
lines changed

9 files changed

+499
-7
lines changed

.roo/rules/rules.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Wave Terminal is a modern terminal which provides graphical blocks, dynamic layo
44

55
It has a TypeScript/React frontend and a Go backend. They talk together over `wshrpc` a custom RPC protocol that is implemented over websocket (and domain sockets).
66

7+
The frontend uses yarn (berry).
8+
79
### Coding Guidelines
810

911
- **Go Conventions**:

Taskfile.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ tasks:
4242
WCLOUD_ENDPOINT: "https://api-dev.waveterm.dev"
4343
WCLOUD_WS_ENDPOINT: "wss://wsapi-dev.waveterm.dev"
4444

45+
electron:quickdev:
46+
desc: Run the Electron application via the Vite dev server (quick dev - no docsite, arm64 only, no generate, no wsh).
47+
cmd: yarn dev
48+
deps:
49+
- yarn
50+
- build:backend:quickdev
51+
env:
52+
WCLOUD_ENDPOINT: "https://api-dev.waveterm.dev/central"
53+
WCLOUD_WS_ENDPOINT: "wss://wsapi-dev.waveterm.dev/"
54+
4555
storybook:
4656
desc: Start the Storybook server.
4757
cmd: yarn storybook
@@ -114,6 +124,11 @@ tasks:
114124
- task: build:server
115125
- task: build:wsh
116126

127+
build:backend:quickdev:
128+
desc: Build only the wavesrv component for quickdev (arm64 macOS only, no generate, no wsh).
129+
cmds:
130+
- task: build:server:quickdev
131+
117132
build:schema:
118133
desc: Build the schema for configuration.
119134
sources:
@@ -153,6 +168,24 @@ tasks:
153168
vars:
154169
ARCHS: arm64,amd64
155170

171+
build:server:quickdev:
172+
desc: Build the wavesrv component for quickdev (arm64 macOS only, no generate).
173+
platforms: [darwin]
174+
cmds:
175+
- cmd: "{{.RM}} dist/bin/wavesrv*"
176+
ignore_error: true
177+
- task: build:server:internal
178+
vars:
179+
ARCHS: arm64
180+
deps:
181+
- go:mod:tidy
182+
sources:
183+
- "cmd/server/*.go"
184+
- "pkg/**/*.go"
185+
- "pkg/**/*.json"
186+
generates:
187+
- dist/bin/wavesrv.*
188+
156189
build:server:windows:
157190
desc: Build the wavesrv component for Windows platforms (only generates artifacts for the current architecture).
158191
platforms: [windows]

0 commit comments

Comments
 (0)