-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update CONTRIBUTING.md with installation instructions
- Loading branch information
1 parent
9184b70
commit 2acd708
Showing
1 changed file
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
# How to release | ||
# Installation and Development | ||
|
||
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 | ||
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](https://docs.obsidian.md/Plugins/Getting+started/Build+a+plugin) 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 |