28 lines
454 B
Makefile
28 lines
454 B
Makefile
set dotenv-load := false
|
|
set positional-arguments := false
|
|
|
|
default:
|
|
@just --list
|
|
|
|
install:
|
|
@echo "→ Installing Go module dependencies…"
|
|
go mod tidy
|
|
go mod download
|
|
|
|
uninstall:
|
|
@echo "→ Removing ./bin…"
|
|
rm -rf bin
|
|
|
|
# Run the server in dev mode
|
|
run:
|
|
go run ./cmd/server
|
|
|
|
build:
|
|
@echo "→ Building for production…"
|
|
@mkdir -p bin
|
|
go build -ldflags="-s -w" -o bin/nuntius ./cmd/server
|
|
|
|
test:
|
|
@echo "→ Running tests…"
|
|
go test ./...
|