-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
90 lines (75 loc) · 2.38 KB
/
Copy pathTaskfile.yml
File metadata and controls
90 lines (75 loc) · 2.38 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '3'
includes:
common: ./build/Taskfile.yml
windows: ./build/windows/Taskfile.yml
darwin: ./build/darwin/Taskfile.yml
linux: ./build/linux/Taskfile.yml
ios: ./build/ios/Taskfile.yml
android: ./build/android/Taskfile.yml
vars:
APP_NAME: "Formidable"
BIN_DIR: "bin"
VITE_PORT: '{{.WAILS_VITE_PORT | default 9245}}'
tasks:
generate:
summary: Regenerates the embedded godoc served by the internal server
cmds:
- go generate ./internal/server/godoc
build:
summary: Builds the application
cmds:
- task: generate
- task: "{{OS}}:build"
package:
summary: Packages a production build of the application
cmds:
- task: generate
- task: "{{OS}}:package"
run:
summary: Runs the application
cmds:
- task: "{{OS}}:run"
dev:
summary: Build and run the app; closing the window exits cleanly (no watcher)
cmds:
- wails3 generate bindings -clean=true -ts
- task: "{{OS}}:common:install:frontend:deps"
- task: "common:build:frontend"
vars: {DEV: "true"}
- task: "{{OS}}:build"
vars: {DEV: "true"}
- task: "{{OS}}:run"
dev:watch:
summary: Hot-reload dev mode via wails3 dev (window close requires Ctrl-C to stop watcher)
cmds:
- wails3 dev -config ./build/config.yml -port {{.VITE_PORT}}
setup:docker:
summary: Builds Docker image for cross-compilation (~800MB download)
cmds:
- task: common:setup:docker
viewer:build:
summary: Builds the standalone Formidable Viewer (Vue shell + binary) for the host platform
cmds:
- "cd frontend-viewer && npm ci && npm run build"
- go build -tags production -trimpath -o "{{.BIN_DIR}}/formidable-viewer" ./cmd/formidable-viewer
viewer:run:
summary: 'Builds and runs the viewer (open a bundle: task viewer:run -- /path/to/export.zip)'
cmds:
- task: viewer:build
- "{{.BIN_DIR}}/formidable-viewer {{.CLI_ARGS}}"
build:server:
summary: Builds the application in server mode (no GUI, HTTP server only)
cmds:
- task: common:build:server
run:server:
summary: Runs the application in server mode
cmds:
- task: common:run:server
build:docker:
summary: Builds a Docker image for server mode deployment
cmds:
- task: common:build:docker
run:docker:
summary: Builds and runs the Docker image
cmds:
- task: common:run:docker