-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
57 lines (48 loc) · 1.35 KB
/
Copy pathTaskfile.yml
File metadata and controls
57 lines (48 loc) · 1.35 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
version: "3"
vars:
PACKAGE: monolith
VERSION:
sh: git describe --tags --always --dirty 2>/dev/null || echo "dev"
COMMIT:
sh: git rev-parse --short HEAD 2>/dev/null || echo "dev"
BUILD_TIME: '{{now | date "2006-01-02T15:04:05Z"}}'
GO_BUILD_CMD: CGO_ENABLED=0 go build {{.GO_FLAGS}} -trimpath -tags "{{.TAGS}}" -ldflags "-s -w -X {{.PACKAGE}}.Version={{.VERSION}} -X {{.PACKAGE}}.Commit={{.COMMIT}} -X {{.PACKAGE}}.BuildTime={{.BUILD_TIME}}"
WEB_BUILD_CMD: npm run build
includes:
dev: ./taskfiles/development.yml
build: ./taskfiles/build.yml
test: ./taskfiles/test.yml
tools: ./taskfiles/tools.yml
tasks:
# Quick aliases for common tasks
run:
desc: "Run both server and web development servers"
deps:
- server
- web
server:
desc: "Run the server in development mode with hot reload"
cmds:
- task: dev:server
web:
desc: "Run the web development server"
cmds:
- task: dev:web
shadcn:update:
desc: "Reinstall existing shadcn/ui components"
cmds:
- task: dev:shadcn:update
fmt:
desc: "Run formatting for both Go and web code"
deps:
- dev:fmt:go
- dev:fmt:web
lint:
desc: "Run linting for both Go and web code"
deps:
- dev:lint:go
- dev:lint:web
test:
desc: "Run all tests for both Go and web code"
deps:
- test:all