-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
93 lines (80 loc) · 1.88 KB
/
Taskfile.yaml
File metadata and controls
93 lines (80 loc) · 1.88 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
91
92
93
---
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
tasks:
default:
cmd: task --list-all
install-go-deps:
desc: Install Go dependencies
cmds:
- go mod download
- go mod tidy
- go mod vendor
preconditions:
- which go
install-dev-tools:
desc: Install development tools
cmds:
- brew install sqlc tailwindcss mockery golangci-lint golang-migrate
- go install github.com/a-h/templ/cmd/templ@latest
- go install github.com/air-verse/air@latest
preconditions:
- which brew
- which go
fmt-verify-tidy-vet:
desc: Executes go fmt, go mod verify, go mod tidy, go vet
cmds:
- go fmt ./...
- go vet ./...
- go mod verify
- go mod tidy
generate-mocks:
desc: Generate mocks for the project
cmds:
- mockery
preconditions:
- which go
- which mockery
generate-sqlc:
desc: Generate SQLC code
cmds:
- sqlc generate
preconditions:
- which sqlc
generate-tailwind:
desc: Generate Tailwind CSS
cmds:
- tailwindcss -i templates/css/app.css -o public/styles.css
preconditions:
- which tailwindcss
generate-templates:
desc: Generate templates using templ
cmds:
- templ generate
preconditions:
- which go
- which templ
build:
desc: Build the project
cmds:
- go build -o bin/gotth-sqlite ./cmd/web/main.go
preconditions:
- which go
golangci-lint:
desc: Run golangci-lint
cmds:
- golangci-lint run --timeout 2m
preconditions:
- which golangci-lint
unittest:
desc: Run unit-tests
cmds:
- go test -tags=unittest ./...
preconditions:
- which go
integrationtest:
desc: Run integration-tests
cmds:
- go test -tags=integrationtest ./...
preconditions:
- which go