|
|
2 years ago | |
|---|---|---|
| .. | ||
| src | 2 years ago | |
| .gitignore | 2 years ago | |
| README.md | 2 years ago | |
| build-ios.sh | 2 years ago | |
| bump-version.sh | 2 years ago | |
| get-pkg-version.js | 2 years ago | |
| nbb.edn | 2 years ago | |
| package.json | 2 years ago | |
| patch-xcode-project.sh | 2 years ago | |
| publishing.sh | 4 years ago | |
| yarn.lock | 2 years ago | |
This is a collection of development related scripts, written as bash scripts, bb/babashka scripts and nbb scripts.
Most bb scripts live under src/ and are defined as bb tasks. See babashka tasks
Before running any nbb-logseq scripts, be sure to have node >= 18.14 installed as well as a recent babashka for managing the dependencies in nbb.edn. Then yarn install to install dependencies
For database graphs, it is possible to create graphs with the
logseq.tasks.db-graph.create-graph
ns. This ns makes it easy to write scripts that create graphs by supporting a
concise EDN map for graph generation. For example, the
create_graph_with_properties.cljs script uses this ns to create a graph with
a variety of properties:
$ yarn nbb-logseq src/logseq/tasks/db_graph/create_graph_with_properties.cljs ~/logseq/graphs/woot
Generating 16 pages and 24 blocks ...
Created graph woot!
This script creates a DB graph with blocks containing several property types for both single and many cardinality. It also includes queries for most of these properties. Read the docs in logseq.tasks.db-graph.create-graph for specifics on the EDN map.