summaryrefslogtreecommitdiff
path: root/bb.edn
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-11-03 01:08:53 +0800
committereltrac <hi@eltr.ac>2026-11-03 01:08:53 +0800
commit3b02353138b48e34d3f24a4636e9ec7420fc3903 (patch)
tree784a56b22883d281397acc3740af366a60bd5762 /bb.edn
parentca0205d576d2dd2e0f8bd633344233ed2618cd99 (diff)
[chore] replace justfile with bb.edn
Diffstat (limited to 'bb.edn')
-rw-r--r--bb.edn14
1 files changed, 10 insertions, 4 deletions
diff --git a/bb.edn b/bb.edn
index abb38cd3..2de8139a 100644
--- a/bb.edn
+++ b/bb.edn
@@ -1,7 +1,13 @@
{:tasks
{serve (shell "hugo" "server" "-D")
- deploy (shell "openrsync --rsync-path=openrsync -av ./public/ qwilfish:/var/www/html/geedeapro")
- build (shell "bb" "./build.clj")
- pub {:depends [build deploy]
+ deploy (shell "openrsync --rsync-path=openrsync -av ./public/ qwilfish:/var/www/html/geedeapro")
+ build (shell "bb" "./build.clj")
+ pub {:depends [build deploy]
:task (println "Published!")}
- make (shell "open https://invidious.nerdvpn.de/watch?v=YjXfjdCmfD4")}}
+ write (let [[slug] *command-line-args*]
+ (shell "hugo" "new" "content" (str slug ".md"))
+ (shell "nvim" (str "content/" slug ".md")))
+ book (let [[title] *command-line-args*]
+ (def year (.getYear (java.time.LocalDateTime/now)))
+ (shell "bb" "write" (str "library/" year "/" title)))
+ make (shell "open https://invidious.nerdvpn.de/watch?v=YjXfjdCmfD4")}}