Logseq Plugin Template React ๐Ÿš€

January 21, 2023 ยท View on GitHub

Features

  • Plug-and-play boilerplate with properly defined GitHub action defaults
  • Develop with HMR, empowered by lightning-fast Vite โšก with vite-logseq-plugin
  • TailwindCSS for styling
  • Pnpm

How to get started

  1. Clone the repository or use the button "Use this template" on GitHub to create your own version of the repository ๐Ÿ”จ
  2. Make sure you have pnpm installed, install if necessary ๐Ÿ› 
  3. Execute pnpm install ๐Ÿ“ฆ
  4. Change the plugin-name in package.json to your liking. Adapt both the package-name and the plugin-id at the bottom of the package.json. Make sure that they are not conflicting with plugins you already installed. ๐Ÿ“
  5. Execute pnpm build to build the plugin ๐Ÿšง
  6. Enable developer-mode in Logseq, go to plugins, select "Load unpacked plugin" ๐Ÿ”Œ
  7. Select the directory of your plugin (not the /dist-directory, but the directory which includes your package.json) ๐Ÿ“‚
  8. Enjoy! ๐ŸŽ‰