28 lines
436 B
Makefile
28 lines
436 B
Makefile
# Makefile
|
|
.PHONY: build
|
|
|
|
BINARY_NAME=projectreshoot
|
|
|
|
build:
|
|
go mod tidy && \
|
|
templ generate && \
|
|
go generate && \
|
|
go build -ldflags="-w -s" -o ${BINARY_NAME}
|
|
|
|
dev:
|
|
templ generate --watch &\
|
|
air &\
|
|
tailwindcss -i ./static/css/input.css -o ./static/css/output.css --watch
|
|
|
|
tester:
|
|
go mod tidy && \
|
|
go run . --port 3232 --test --loglevel trace
|
|
|
|
test:
|
|
go mod tidy && \
|
|
go test . -v
|
|
go test ./middleware -v
|
|
|
|
clean:
|
|
go clean
|