Obsidian Plugin Yeoman Generator
For template generator to be fully working it requires Node.js v18 or higher.
First, install Yeoman and generator-obsidian-plugin using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-obsidian-pluginThen generate your new project:
mkdir new-plugin-name
cd new-plugin-name
yo obsidian-pluginYou can see an sample output of this generator at Sample Plugin Extended.
- Obsidian Extended Typings for internal Obsidian API.
- Code style is forced via
ESLint. - Spell checking is forced via
CSpell. - Code formatting is forced via
dprint. - CLI commands and code helpers from Obsidian Dev Utils.
- Supports svelte components. See example in
src/SvelteComponentsin the generated project. - Supports react components. See example in
src/ReactComponentsin the generated project. - Supports SASS for CSS pre-processing. See example in
src/styles/main.scssin the generated project.
This template offers several NPM commands to facilitate common development tasks:
See documentation for the full list of such commands and how to extend them for your needs.
The documentation above shows usage examples in the form npx obsidian-dev-utils foo. This template additionally allows to call them via npm run foo.
