mirror of
https://github.com/wenlzhang/obsidian-canvas-format-brush.git
synced 2026-07-22 05:41:31 +00:00
1.5 KiB
1.5 KiB
Plugin Template
This is a template for creating plugins for Obsidian, maintained by wenlzhang.
Getting started
- Clone this repository to your local machine
- Update the following files with your plugin information:
manifest.json:id: Your plugin ID (in kebab-case)name: Your plugin nameauthor: Your nameauthorUrl: Your website or GitHub profile URLfundingUrl: Optional funding information
package.json:name: Your plugin name (should match manifest.json)description: Your plugin descriptionauthor: Your namekeywords: Relevant keywords for your plugin
Development
- Install dependencies:
npm install
- Start development server:
npm run dev
- Build the plugin:
npm run build
Testing your plugin
- Create a test vault in Obsidian
- Create a
.obsidian/pluginsfolder in your test vault - Copy your plugin folder into the plugins folder
- Reload Obsidian to load the plugin (Ctrl/Cmd + R)
- Enable the plugin in Obsidian's settings
Publishing your plugin
- Update
versions.jsonwith your plugin's version history - Test your plugin thoroughly
- Create a GitHub release
- Submit your plugin to the Obsidian Plugin Gallery