Files
projectreshoot/Makefile

32 lines
566 B
Makefile

# Makefile
.PHONY: build
BINARY_NAME=projectreshoot
build:
tailwindcss -i ./static/css/input.css -o ./static/css/output.css && \
go mod tidy && \
templ generate && \
go generate && \
go build -ldflags="-w -s" -o ${BINARY_NAME}${SUFFIX}
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 && \
templ generate && \
go generate && \
go test .
go test ./db
go test ./middleware
clean:
go clean