forked from damongolding/immich-kiosk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskfile.yml
75 lines (63 loc) · 1.7 KB
/
taskfile.yml
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
version: "3"
env:
VERSION: 0.15.0
includes:
frontend:
taskfile: ./taskfile.frontend.yml
flatten: true
docker:
taskfile: ./taskfile.docker.yml
flatten: true
tasks:
# Development tasks
default:
desc: Run kiosk in debug mode
deps: [build]
cmds:
- KIOSK_DEBUG=true ./dist/kiosk
verbose:
desc: Run kiosk in verbose debug mode
deps: [build-verbose]
cmds:
- KIOSK_DEBUG_VERBOSE=true ./dist/kiosk
# Backend tasks
templ:
desc: Generate templ templates
cmds:
- templ generate
test:
desc: Run tests
cmds:
- go test ./...
lint:
desc: Run linter
cmds:
- golangci-lint run
# Build tasks
build:
desc: Build kiosk
deps: [frontend, templ]
cmds:
- CGO_ENABLED=0 go build -installsuffix cgo -ldflags "-X main.version={{.VERSION}}" -o dist/kiosk .
build-verbose:
desc: Build kiosk with face detection debugging enabled
deps: [frontend, templ]
cmds:
- CGO_ENABLED=0 go build -installsuffix cgo -ldflags "-X main.version={{.VERSION}} -X github.com/damongolding/immich-kiosk/routes.drawFacesOnImages=true" -o dist/kiosk .
# Maintenance tasks
install:
desc: Install development dependencies
deps: [update-templ, frontend-install]
cmds:
- go install github.com/golangci/golangci-lint/cmd/[email protected]
- go install github.com/psampaz/go-mod-outdated@latest
- go mod tidy
outdated:
desc: Check for outdated dependencies
cmds:
- go list -u -m -json all | go-mod-outdated -direct -update
- cd frontend && pnpm outdated
update-templ:
desc: Update templ CLI tool
cmds:
- go install github.com/a-h/templ/cmd/templ@latest