Library of reusable https://github.com/babashka/babashka tasks
Add a git dependency to your bb.edn:
:deps
{logseq/bb-tasks
{:git/url "https://github.com/logseq/logseq"
:git/sha "FILL IN"
:deps/root "deps/bb-tasks"}}
Given a graph directory and an nbb script, the nbb script will run when either the script or a file in the directory is saved.
For example, from root of logseq repo, run the following:
$ bb nbb:watch /path/to/graph deps/graph-parser/examples/parse_file.cljs
Watching /path/to/graph ...
See this demo clip to see it in action.