logseq/deps/common
Tienson Qin 1854286cf0 refactor: persistent views stored using blocks 2024-07-07 21:05:14 +08:00
..
.carve fix: deps lints 2024-06-20 09:14:59 -04:00
.clj-kondo Minor clean up and help with feedback 2023-03-28 09:14:42 +08:00
resources/templates fix: update :query/result-transforms to work with db graphs 2024-06-10 12:38:40 -04:00
src/logseq/common refactor: persistent views stored using blocks 2024-07-07 21:05:14 +08:00
test/logseq/common chore: use clj-fractional-indexing 2024-05-22 15:21:35 +08:00
.gitignore Minor clean up and help with feedback 2023-03-28 09:14:42 +08:00
README.md Move config.edn template to a library 2023-09-08 13:52:45 -04:00
bb.edn Update clj-kondo and bb-tasks for deps projects 2023-06-13 14:48:50 +08:00
deps.edn fix: can't remove Many values 2024-05-02 18:03:17 +08:00
nbb.edn fix: unused time dep and duplicated time-ms fns 2024-01-12 10:41:22 -05:00
package.json Bump nbb with latest datascript 2024-06-27 18:07:44 -04:00
yarn.lock Bump nbb with latest datascript 2024-06-27 18:07:44 -04:00

README.md

Description

This library provides common util namespaces and resources to share between the frontend and other non-frontend contexts. This library is not supposed to depend on other logseq libraries. This library is compatible with ClojureScript and with node/nbb-logseq to respectively provide frontend and Electron/commandline functionality.

API

This library is under the parent namespace logseq.common.

Dev

This follows the practices that the Logseq frontend follows. Most of the same linters are used, with configurations that are specific to this library. See this library's CI file for linting examples.

Setup

To run linters and tests, you'll want to install yarn dependencies once:

yarn install

Testing

To run nbb-logseq tests:

# Run all tests
$ yarn test
# List available options
$ yarn test -H
# Run tests with :focus metadata flag
$ yarn test -i focus

To run ClojureScript tests:

clojure -M:test

To auto-run ClojureScript tests while writing tests:

clojure -M:test -w src

Managing dependencies

See standard nbb/cljs library advice in graph-parser.