Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.52 KB

CONTRIBUTING.md

File metadata and controls

23 lines (15 loc) · 1.52 KB

Installation and Development

This project uses pnpm as its package manager. To get started, make sure you have corepack enabled by running corepack enable, and then run pnpm install to install the dependencies.

From there, you can run the package.json scripts:

  • Run tests with pnpm run test
  • Lint with pnpm run lint
  • Reformat with pnpm run format:write
  • pnpm run dev to start the development build of the plugin. (More on this below)
  • pnpm run build to bundle the build for release

Installing the plugin

Follow the obsidian documentation for how to install a plugin in development.

Effectively, you'll need to move this repository into your .obsidian/plugins folder, and then run the pnpm run dev command. From there, you'll need to enable the plugin. Additinoally, it's recommended to install the hot-reload plugin so you don't need to reload or toggle the plugin to see updates.

Notes for maintainers on how to release

  1. Get the change to the main branch.
  2. Run ./version-bump.sh. It bumps the current version from package.json, and adds it to other obsidian files and creates a tag and pushes it. See error message for usage. For example, when starting from 0.1.0, run ./version-bump.sh patch rc to create a new patch version. This will adjust the version to 0.1.1-rc1. If that looks good, run version-bump.sh release to create a new release from the candidate e.g. 0.1.1
  3. Wait for github action. Release the Draft in github UI