summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-09-21 20:38:05 +0800
committereltrac <hi@eltr.ac>2026-09-21 20:38:05 +0800
commit9002cb12cd39c5c63e75e6e6f98f8e5f292e95ea (patch)
tree1aed25843cda1b5d5672390ada98cde55212242c
parent998b24c2ceee65485bb51248b88c20a9f399f841 (diff)
[chore] use just instead of make
-rw-r--r--Makefile14
-rw-r--r--justfile13
2 files changed, 13 insertions, 14 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 29b49e74..00000000
--- a/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-deploy:
- @rsync -avz --delete ./public/ eltrac@$(GEEDEAPRO_IP):/var/www/html/geedeapro
- @pnpm wm --limit 1 --send
-
-build:
- @bb ./build.clj
-
-pub:
- @make build
- @make deploy
-
-write:
- @hugo new content article/$(word 2,$(MAKECMDGOALS)).md
- @nvim ./content/article/$(word 2,$(MAKECMDGOALS)).md
diff --git a/justfile b/justfile
new file mode 100644
index 00000000..b0c82c96
--- /dev/null
+++ b/justfile
@@ -0,0 +1,13 @@
+deploy:
+ rsync -avz --delete ./public/ eltrac@${GEEDEAPRO_IP}:/var/www/html/geedeapro
+
+build:
+ bb ./build.clj
+
+pub: build deploy
+
+write section name:
+ hugo new content {{section}}/{{name}}.md
+ nvim ./content/{{section}}/{{name}}.md
+
+article name: (write "article" name)