Skip to content

z2k-gwp/obsidian-z2k-plugin-template-small

Repository files navigation

Obsidian Plugin Template for Small Projects

Overview

This Obsidian code template is used to create small plugins. Small is defined as:

  • residing in one single file (main.ts)
  • needing only a couple of functions to pull it off
  • heavily based off of the official sample plugin
  • uses esbuild for building and npm for library management
  • does NOT use lint

Details

Installation

  • 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 or yarn to install dependencies
  • Run the compile wait loop by running from the command line npm run dev

For more information on making releases and adding it the the community plugin list, see Obisidian's Sample Plugin's Readme

Tools

About

This is a template repo for building quick and easy plugins (e.g. single source file)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors