Files
nuntius/justfile
T

35 lines
631 B
Makefile

# Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
# SPDX-License-Identifier: MIT
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 ./...
# Format Go source files
fmt:
gofmt -w cmd internal pkg