This repository was archived by the owner on Mar 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
77 lines (67 loc) · 1.36 KB
/
Copy pathTaskfile.yml
File metadata and controls
77 lines (67 loc) · 1.36 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
version: '3'
tasks:
default:
deps: [build]
frontend:
desc: "Build frontend assets"
dir: frontend
cmds:
- npm install
- npm run build
sources:
- src/**/*
- package.json
- vite.config.ts
generates:
- dist/**/*
build:
desc: "Build the application"
deps: [frontend]
cmds:
- go build -o lycaon
sources:
- '**/*.go'
- frontend/dist/**/*
generates:
- lycaon
test:
desc: "Run tests"
cmds:
- go test ./...
mock:
desc: "Generate mocks"
cmds:
- go generate ./...
graphql:
desc: "Generate GraphQL code"
cmds:
- go tool github.com/99designs/gqlgen generate
sources:
- graphql/*.graphql
- gqlgen.yml
- pkg/domain/model/*.go
generates:
- pkg/controller/graphql/generated.go
- pkg/controller/graphql/schema.resolvers.go
- pkg/domain/model/graphql/models_gen.go
run:
desc: "Run the server"
deps: [build]
cmds:
- ./lycaon serve
clean:
desc: "Clean build artifacts"
cmds:
- rm -rf lycaon
- rm -rf frontend/dist
- rm -rf frontend/node_modules
lint:
desc: "Run linters"
cmds:
- go vet ./...
- go fmt ./...
- golangci-lint run ./...
sec:
desc: "Run security checks"
cmds:
- gosec -exclude-generated -quiet ./...