Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 2.11 KB

README.md

File metadata and controls

53 lines (40 loc) · 2.11 KB

logseq-plugin-react-boilerplate

logseq-plugin-react-boilerplate with vite react typescript tailwindcss antd

latest release version License

Demo

demo

Pre Requirements

  1. nodejs
  2. pnpm

Usage

  1. Use this template create your own plugin
  2. change package.json name to your own plugin name
  3. change LICENSE to your own license
  4. change logo.png to your own logo
  5. run pnpm install to install dependencies

Browser mode with HMR

  1. run pnpm dev to start vite server
  2. Open HTTP APIs server Feature in logseq settings
  3. add Authorization tokens in logseq
  4. open localhost:5173 in browser

Tip

Browser mode cannot access logseq plugin settings, you can add a file mocks/settings.local.json to mock.

Plugin mode

This mode doesn't support HMR, you need to run pnpm build and reload plugin in logseq to see the changes

  1. run pnpm build:plugin to build plugin
  2. Open Plugins feature in logseq settings
  3. Click Load unpacked plugin and select this project folder

Release new version

  1. push to main branch
  2. github ci will auto create a new release

Tip

Commit message needs to follow the semantic-release specification

Create PR to add your plugin message to logseq/marketplace