1
0
Fork 0
mirror of https://github.com/imjasonh/gots synced 2026-07-08 09:05:45 +00:00
gots/Makefile
Jason Hall 6fb1556043 add docs, fix up air usage
Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-08-30 21:06:52 -04:00

26 lines
503 B
Makefile

.PHONY: generate build run dev clean install-air
KO_DOCKER_REPO?=ttl.sh/jason
# Generate frontend assets
generate:
go generate ./...
# Build the Go binary
build: generate
go build -o gojs .
# Run the server (regenerates assets first)
run: generate
go run . -port=8080
# Development mode - watch for changes and auto-reload
dev:
go tool air
image:
KO_DOCKER_REPO=$(KO_DOCKER_REPO) ko build
# Clean generated files
clean:
rm -rf assets/ frontend/node_modules/ frontend/package-lock.json gojs