dev: add tasks for saving and diffing datoms

part of LOG-2974
This commit is contained in:
Gabriel Horner
2023-12-19 13:19:10 -05:00
parent 0ae74ee8c0
commit 72f5218b39
4 changed files with 136 additions and 1 deletions

10
bb.edn
View File

@@ -57,6 +57,16 @@
{:doc "Transact against a DB graph's datascript db"
:task (apply shell {:dir "deps/outliner"} "yarn -s nbb-logseq script/transact.cljs" *command-line-args*)}
dev:db-datoms
{:doc "Write db's datoms to a file"
:requires ([babashka.fs :as fs])
:task (apply shell {:dir "deps/db" :extra-env {"ORIGINAL_PWD" (fs/cwd)}}
"yarn -s nbb-logseq script/dump_datoms.cljs"
*command-line-args*)}
dev:diff-datoms
logseq.tasks.dev/diff-datoms
dev:npx-cap-run-ios
logseq.tasks.dev.mobile/npx-cap-run-ios