Add template scaffolding

This commit is contained in:
Daniel Lundin 2024-09-23 17:12:50 +02:00
commit 1f31615620
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
10 changed files with 205 additions and 0 deletions

28
justfile Normal file
View file

@ -0,0 +1,28 @@
set shell := ["/usr/bin/env", "bash", "-euo", "pipefail", "-c"]
[private]
default:
@just --choose
# Run all tests
test:
nix flake check
# Lint all source code
lint:
echo FIXME: Add linter(s) here
# Format all source code
fmt:
echo FIXME: Add formatter here
# Update all dependencies
update: update-nix-pkgs
# Update nix flake packages
update-nix-pkgs:
nix flake update
# Run local development
dev $OTEL_SERVICE_NAME="my-project":
watchexec --clear --restart --stop-signal INT --debounce 300ms -- nix run .