logseq/deps/common
Gabriel Horner 96b35c0252 Update nbb-logseq to stub in cljs-bean.transit 2024-03-11 15:19:50 -04:00
..
.carve enhance: improve property type detection 2024-02-22 16:00:03 -05:00
.clj-kondo Minor clean up and help with feedback 2023-03-28 09:14:42 +08:00
resources/templates Remove unused :preferred-workflow config for db graphs 2024-03-07 11:39:51 -05:00
src/logseq/common Remove unused :preferred-workflow config for db graphs 2024-03-07 11:39:51 -05:00
test/logseq/common chore: move legacy fns to legacy ns 2024-01-31 11:11:14 -05: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 Move time-ms to common.util 2024-01-03 17:12:31 +08:00
nbb.edn fix: unused time dep and duplicated time-ms fns 2024-01-12 10:41:22 -05:00
package.json Update nbb-logseq to stub in cljs-bean.transit 2024-03-11 15:19:50 -04:00
yarn.lock Update nbb-logseq to stub in cljs-bean.transit 2024-03-11 15:19:50 -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.