summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-25 21:07:49 +0200
committerPaul Buetow <paul@buetow.org>2026-01-25 21:07:49 +0200
commit089888a18d10a4cf8eeacf1ad2b4535ed641268d (patch)
tree5f1f1b980f2abc3bdfd352d27614ddfffbbae10b
parent0c76ceb3fd9cb0d34a976b1a6f8819f316a35060 (diff)
Add Justfile for common tasks
- just build: Run node build.js to embed summaries - just open: Start webserver and open Firefox - just stop: Stop the webserver Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
-rw-r--r--Justfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Justfile b/Justfile
new file mode 100644
index 0000000..43861c8
--- /dev/null
+++ b/Justfile
@@ -0,0 +1,18 @@
+# Sci-Fi Book Showcase
+
+# Default target: build the site
+default: build
+
+# Build the site (embeds summaries into books.json)
+build:
+ node build.js
+
+# Start webserver and open in Firefox
+open:
+ python -m http.server 9000 &
+ sleep 1
+ firefox http://localhost:9000
+
+# Stop the webserver
+stop:
+ pkill -f "http.server 9000" || true