forked from TomDoesTech/GOTTH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 737 Bytes
/
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
.PHONY: tailwind-watch
tailwind-watch:
./tailwindcss -i ./static/css/input.css -o ./static/css/style.css --watch
.PHONY: tailwind-build
tailwind-build:
./tailwindcss -i ./static/css/input.css -o ./static/css/style.min.css --minify
.PHONY: templ-generate
templ-generate:
templ generate
.PHONY: templ-watch
templ-watch:
templ generate --watch
.PHONY: dev
dev:
go build -o ./tmp/$(APP_NAME) ./cmd/$(APP_NAME)/main.go && air
.PHONY: build
build:
make tailwind-build
make templ-generate
go build -ldflags "-X main.Environment=production" -o ./bin/$(APP_NAME) ./cmd/$(APP_NAME)/main.go
.PHONY: vet
vet:
go vet ./...
.PHONY: staticcheck
staticcheck:
staticcheck ./...
.PHONY: test
test:
go test -race -v -timeout 30s ./...