Go to file Use this template
Ryota Ushio d38d26d8fb
Update README.md
2023-12-18 15:26:06 +09:00
.github/workflows Add release workflow 2023-10-21 16:19:03 +09:00
src Remove sample setting 2023-12-15 18:11:02 +09:00
.editorconfig use LF instead of CRLF (#28) 2022-04-15 14:13:31 -04:00
.eslintignore fix .eslintignore (#48) 2023-01-19 10:06:51 -05:00
.eslintrc add version bump script (#10) 2022-01-22 16:13:50 -05:00
.gitignore Update .gitignore (#25) 2022-01-28 10:34:53 -05:00
.npmrc add version bump script (#10) 2022-01-22 16:13:50 -05:00
README.md Update README.md 2023-12-18 15:26:06 +09:00
esbuild.config.mjs Customized the orignal template so that it fits my needs more 2023-10-18 17:09:44 +09:00
manifest.json Customized the orignal template so that it fits my needs more 2023-10-18 17:09:44 +09:00
package-lock.json Customized the orignal template so that it fits my needs more 2023-10-18 17:09:44 +09:00
package.json Update package.json 2023-11-03 01:53:07 +09:00
styles.css Update sample css file. 2022-08-09 13:39:02 -04:00
tsconfig.json Update tsconfig.json 2023-11-13 02:03:28 +09:00
version-bump.mjs add version bump script (#10) 2022-01-22 16:13:50 -05:00
versions.json Update for 0.15 2022-08-09 13:38:50 -04:00

README.md

Obsidian Sample Plugin

This is a modified version of https://github.com/obsidianmd/obsidian-sample-plugin.

Differences from the original sample plugin

  • *.ts files are put in the src directory
  • The plugin class definition and settings-related code are separated into main.ts and settings.ts
  • Release GitHub action is already there
    • Don't forget to go to Settings > Actions > General > Workflow permissions and turn on Read and write permissions
  • The default branch has been renamed main

Usage

  1. Create a new repository using this template ("Use this template" > "Create a new repository")
  2. Clone the created repository
  3. Modify at least the id & name fields in manifest.json.
  4. Modify package.json accordingly.
  5. Run npm i to install the dependencies
  6. Run npm run dev or npm run build to compile your plugin

Releasing your plugin

  1. If you haven't, go to Settings > Actions > General > Workflow permissions and turn on Read and write permissions
  2. Bump the version in manifest.json (and package.json) and then commit & push the change
  3. git tag -a <version> -m "<version>"
  4. git push origin <version>. This triggers the release action.
  5. When the action is completed, go to the release page of your repository. You will find a newly created draft release.
  6. Release the draft when you're ready.