-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
executable file
·51 lines (49 loc) · 954 Bytes
/
Taskfile.yaml
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
version: "3"
env:
PORT: 8080
APP_ENV: dev
tasks:
dev:
run: always
cmds:
- air
tailwind:
cmds:
- npm run watch
commit:
cmds:
- git add -A
- cz --name cz_gitmoji commit
lint:
cmds:
- go mod tidy
- gofumpt -l -w .
- betteralign -apply ./...
- gci write -s standard -s default --skip-generated .
- golangci-lint run
- go test -cover ./...
build:
deps:
- task: generate
cmds:
- go build -tags dev -o build/memnix ./cmd/v1/main.go
clean:
cmds:
- rm -rf build
generate:
aliases:
- gen
- g
generates:
- app/v1/views/**/*.go
- assets/static/**/*.css
sources:
- app/v1/views/**/*.templ
- tailwind.config.js
- tailwind.css
- assets/static/**/*.css
cmds:
- templ generate
- wire gen -tags dev ./...
- sqlc generate
- go generate -tags dev ./...