💝 Sponsor this project on Github or ☕ Get me a coffee if you like this plugin!
Bootstrap a basic template to build plugins for Logseq.
This template uses pnpm
. Install it if you do not have it installed yet.
- Clone repository.
- Run
pnpm run dev:start
. - Navigate to
index.ts
and start building! - Edit
package.json
to your plugin name.
Included is a GitHub Actions workflow in .github/workflows/publish.yml
. It assumes that your plugin icon can be found in root, and the filename is icon.svg
. Please edit the yml
file if this is not the case.
This template also uses semantic release
to manage versioning for each release. Please ensure that package.json
reflects the correct name of the zip file that it generates.
Example:
"release": {
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/github",
{
"assets": [
"logseq-mysampleplugin-plugin.zip"
]
}
]
]
},