|
19 小时之前 | |
---|---|---|
.. | ||
cljs-sdk | 19 小时之前 | |
scripts | 3 天之前 | |
src | 1 周之前 | |
.gitignore | 3 年之前 | |
.npmignore | 2 年之前 | |
.prettierrc.js | 3 年之前 | |
CHANGELOG.md | 1 年之前 | |
README.md | 3 天之前 | |
babel.config.json | 2 年之前 | |
index.d.ts | 4 年之前 | |
package.json | 4 天之前 | |
tsconfig.json | 4 年之前 | |
webpack.config.core.js | 3 年之前 | |
webpack.config.js | 2 年之前 | |
yarn.lock | 4 天之前 |
🚀 Logseq SDK libraries.
yarn add @logseq/libs
Load logseq
plugin sdk as global namespace
import "@logseq/libs"
If you have any feedback or encounter any issues, feel free to join Logseq's discord group. https://discord.gg/KpN4eHY
To regenerate the ClojureScript facade from the JS SDK declarations (keeping the same argument shapes as the JS APIs while auto-converting to/from CLJS data):
yarn run generate:schema # emits dist/logseq-sdk-schema.json
bb libs:generate-cljs-sdk # emits logseq/core.cljs and per-proxy files under target/generated-cljs
Non-proxy methods (those defined on ILSPluginUser
, e.g. ready
, provide-ui
) land in logseq.core
. Each proxy (IAppProxy
, IEditorProxy
, ...) is emitted to its own namespace such as logseq.app
or logseq.editor
, preserving the original JS argument ordering while automatically bean-converting CLJS data.
Pass --out-dir
to change the output location or --ns-prefix
to pick a different namespace root.