summaryrefslogtreecommitdiff
path: root/mise.toml
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-07-12 10:11:21 -0600
committert <t@tjp.lol>2026-07-12 10:23:33 -0600
commitd6ae35f4642c8f21649192d298ee3de9d553d163 (patch)
treefbc369eb992195a5dd090ebbd99aa93162576004 /mise.toml
parenta5e05234896e852fbc6d7dce153001aed8699f6d (diff)
clean task, and get rid of a stray markdown doc in the imported pantograph site
Diffstat (limited to 'mise.toml')
-rw-r--r--mise.toml11
1 files changed, 11 insertions, 0 deletions
diff --git a/mise.toml b/mise.toml
index 4cd8141..270c624 100644
--- a/mise.toml
+++ b/mise.toml
@@ -1,5 +1,16 @@
[tasks.gen]
run = "weft -gitignore . https://tjp.lol"
+[tasks.clean]
+description = "Remove Weft-generated outputs"
+run = '''
+if [ -f .weft-generated.json ]; then
+ jq -r '.outputs[]' .weft-generated.json | xargs -n 1 rm -f
+else
+ awk '/^# BEGIN weft generated outputs$/ { generated = 1; next } /^# END weft generated outputs$/ { generated = 0 } generated { sub(/^\//, ""); print }' .gitignore | xargs -n 1 rm -f
+fi
+rm -f .weft-txn-*
+'''
+
[tasks.dev]
run = "(sleep 1 && open http://127.0.0.1:8001/) & exec air"