template-nix/justfile

29 lines
500 B
Makefile
Raw Normal View History

2024-09-23 17:12:50 +02:00
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:
2024-10-22 00:05:50 +02:00
nix fmt
2024-09-23 17:12:50 +02:00
# 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 .