summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--justfile17
1 files changed, 7 insertions, 10 deletions
diff --git a/justfile b/justfile
index afbcc5d..052d9be 100644
--- a/justfile
+++ b/justfile
@@ -2,19 +2,16 @@
default:
@just --list --unsorted
-run *args:
+[private]
+pre:
nix fmt
git add .
- nix build .#
- ./result/bin/site {{ args }}
+ nix build .# --print-build-logs
+
+run *args: pre
+ nix run .# {{ args }}
watch: (run "watch")
# Build and watch
-baw:
- nix fmt
- git add .
- nix build .#
- ./result/bin/site clean
- ./result/bin/site build
- ./result/bin/site watch
+baw: pre (run "clean") (run "watch")