logseq/deps/common
Gabriel Horner de6c6aedd2 chore: bump nbb-logseq for datascript bump in #11483 2024-08-26 11:22:40 -04:00
..
.carve refactor: mv common worker/frontend ns to frontend/common 2024-08-09 11:18:32 -04:00
.clj-kondo fix: stop shadowing vars in deps and turn on related lint 2024-08-23 16:58:08 -04:00
resources/templates fix: finish removing arweave 2024-08-08 09:24:02 -04:00
src/logseq/common fix: stop shadowing vars in deps and turn on related lint 2024-08-23 16:58:08 -04: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 chore: bump nbb-logseq for datascript bump in #11483 2024-08-26 11:22:40 -04:00
yarn.lock chore: bump nbb-logseq for datascript bump in #11483 2024-08-26 11:22:40 -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.