This Obsidian code template is used to create larger plugins. Large is defined as:
- residing in multiple files in a .\src subdirectory
- needs classes and potentially external interfaces and additional dependencies to pull it off
- uses rollup for building and npm for library management
- (Future:) uses typescript-eslint for linting
- (Future:) uses Jest for testing
- It is assumed you are experienced enough with coding plugins that you've graduated to the next level from the official Obsidian Sample Plugin
- It is also assumed you have at least explored a small project (e.g. the Small Plugin Template)
- More documentation may be found on the plugin's wiki pages.
- Make sure you have the basics preconfigured:
- You've installed NodeJS/npm.
- You are using Hot Reload
- You have run
npm update
recently to ensure your Obsidian API is up to date.
- Make a copy of this repo as a template with the "Use this template" button (login to GitHub if you don't see it).
- Clone your repo to a local development folder. Put the folder in your .obsidian/plugins/your-plugin-name folder.
- run
npm i
oryarn
to install dependencies - Run the compile wait loop by running from the command line
npm run dev
- Be sure to head over to the small plugin template's github wiki for tools to make development easier
- For more advanced topics, head over to this template's github wiki and for documentation on this template.