-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
57 lines (42 loc) · 1.07 KB
/
Makefile
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
.PHONY: frontend
all: fmt check test
bump_deps:
go get -u ./...
make -C frontend bump_deps
check: lint_golangci static
make -C frontend check
lint_golangci:
@golangci-lint run --timeout 3m
static:
@staticcheck -go 1.22 ./...
frontend:
make -C frontend build
deps-go:
go install github.com/cosmtrek/air@v1.51.0
go install github.com/nicksnyder/go-i18n/v2/goi18n@v2.4.0
go install github.com/golang-migrate/migrate/v4/cmd/migrate@v4.17.1
go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.26.0
go install github.com/daixiang0/gci@v0.13.4
go install mvdan.cc/gofumpt@v0.6.0
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2
go install honnef.co/go/tools/cmd/staticcheck@v0.4.6
go install github.com/goreleaser/goreleaser@v1.25.1
test:
go test ./...
fmt:
gci write . --skip-generated -s standard -s default
gofumpt -l -w .
make -C frontend fmt
watch-go:
@air
serve-ts:
make -C frontend serve
local-build: frontend
go build -o bd
snapshot:
goreleaser build --snapshot --clean
generate:
sqlc generate
clean:
rm -rf build/
make -C frontend clean