-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTaskfile.yml
More file actions
42 lines (36 loc) · 929 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
42 lines (36 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3'
vars:
BIN_DIR: build/bin
APP_NAME: cfst-gui
tasks:
default:
cmds:
- task: build
generate:
desc: Generate Wails V3 frontend bindings
cmds:
- wails3 generate bindings
frontend:
desc: Build the embedded frontend assets
dir: frontend
cmds:
- pnpm install --frozen-lockfile
- pnpm run build
build:
desc: Build the desktop application
deps:
- frontend
- generate
cmds:
- pwsh -NoProfile -Command "New-Item -ItemType Directory -Force -Path '{{.BIN_DIR}}' | Out-Null"
- go build -o '{{.BIN_DIR}}/{{.APP_NAME}}.exe' .
lint:
desc: Run Go (vet + golangci-lint), shell, workflow, frontend and docs lint gates
cmds:
- pwsh -NoProfile -File scripts/checks/lint.ps1
test:
desc: Run Go and frontend tests
cmds:
- go test ./...
- pnpm --dir frontend test
- pnpm --dir frontend typecheck