Seed from go-template-repo, renamed to simplexcalc
The template's files at a77fd30, without its history or LICENSE, after script/rename simplexcalc. Model: opus-5-5
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
.PHONY: bootstrap setup test lint fmt fmt-check check build run dev deps docker cibuild clean hooks
|
||||
|
||||
# Every target is a thin shim over script/. The scripts are the real
|
||||
# entrypoints: they carry the project-specific knowledge (flags,
|
||||
# timeouts, docker-only linting) that a raw `go test` or `golangci-lint`
|
||||
# invocation silently bypasses. Never call the underlying tools
|
||||
# directly.
|
||||
.DEFAULT_GOAL := check
|
||||
|
||||
bootstrap:
|
||||
@script/bootstrap
|
||||
|
||||
setup:
|
||||
@script/setup
|
||||
|
||||
test:
|
||||
@script/test
|
||||
|
||||
lint:
|
||||
@script/lint
|
||||
|
||||
fmt:
|
||||
@script/fmt
|
||||
|
||||
fmt-check:
|
||||
@script/fmt-check
|
||||
|
||||
check:
|
||||
@script/check
|
||||
|
||||
build:
|
||||
go build -o bin/simplexcalc ./cmd/simplexcalc
|
||||
|
||||
run: build
|
||||
./bin/simplexcalc serve
|
||||
|
||||
dev:
|
||||
go run ./cmd/simplexcalc serve
|
||||
|
||||
deps:
|
||||
go mod download
|
||||
go mod tidy
|
||||
|
||||
docker:
|
||||
@script/docker
|
||||
|
||||
cibuild:
|
||||
@script/cibuild
|
||||
|
||||
clean:
|
||||
rm -rf bin/
|
||||
|
||||
hooks:
|
||||
@script/install-precommit
|
||||
Reference in New Issue
Block a user