Skip to content

Sample kit for a simple Logseq plugin that does not require React or other tools.

License

Notifications You must be signed in to change notification settings

YU000jp/logseq-plugin-sample-kit-typescript

Repository files navigation

Logseq Plugin: Sample Kit for TypeScript

  • Sample kit for a simple Logseq plugin that does not require React or other tools.

Preparing the repository

  1. Clone this repository or use it as a template to create a new repository.
    • Configure the workflow permissions for the repository." Select "Read and write permissions". (Settings > Actions > General)
  2. Match repository name, etc.
    • Replace all of the strings "YU000jp/logseq-plugin-sample-kit-typescript" in files in the folder.
    • Replace the value of "PLUGIN NAME" in the "release.config.js" file.
    • Replaces a personal name in the "LICENSE" file.
  3. In the same folder as "package.json", run 'pnpm install' from a terminal.
  4. "pnpm build" will generate an executable folder (converted to JavaScript).
    • It can now be loaded from developer mode.
    • During plugin development, reload from the plugin screen after changes have been made.

Steps to publish a plugin

  1. Prepare an icon, approximately 64px in size.
    • If it is an SVG file, replace icon.svg.
    • If it is not an SVG file, place the file in the same folder as package.json and rewrite "icon.svg" in the "release.config.js" file.
  2. Run the GitHub Actions Workflow to generate a public version of the release file.
    • Open the Actions tab, select 'Release' and then press the 'Run workflow' button.
    • If the manifesto has not been submitted, it will not yet be published at this stage.
  3. Submit a manifesto to Logseq.

About

Sample kit for a simple Logseq plugin that does not require React or other tools.

Topics

Resources

License

Stars

Watchers

Forks