Go to file Use this template
Olivier Cardinaux 7a4bfcf449 chore(release): 1.0.1 2023-08-24 19:20:16 +02:00
.husky chore: add husky with commitlint 2023-08-24 17:46:35 +02: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
CHANGELOG.md chore(release): 1.0.1 2023-08-24 19:20:16 +02:00
README.md chore: esbuild copy to destination 2023-08-24 19:19:14 +02:00
commitlint.config.cjs chore: add husky with commitlint 2023-08-24 17:46:35 +02:00
esbuild.config.mjs chore: esbuild copy to destination 2023-08-24 19:19:14 +02:00
main.ts chore: esbuild copy to destination 2023-08-24 19:19:14 +02:00
manifest.json chore(release): 1.0.1 2023-08-24 19:20:16 +02:00
package-lock.json chore(release): 1.0.1 2023-08-24 19:20:16 +02:00
package.json chore(release): 1.0.1 2023-08-24 19:20:16 +02:00
plugin-data.json chore: esbuild copy to destination 2023-08-24 19:19:14 +02:00
styles.css Update sample css file. 2022-08-09 13:39:02 -04:00
tsconfig.json Upgrade dependencies, add strictNullChecks. 2022-06-24 15:41:39 -04: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 sample plugin for Obsidian https://obsidian.md.

This project uses Typescript to provide type checking and documentation. The repo depends on the latest plugin API (obsidian.d.ts) in Typescript Definition format, which contains TSDoc comments describing what it does.

This sample plugin demonstrates some of the basic functionality the plugin API can do.

  • Adds a ribbon icon, which shows a Notice when clicked.
  • Adds a command "Open Sample Modal" which opens a Modal.
  • Adds a plugin setting tab to the settings page.
  • Registers a global click event and output 'click' to the console.
  • Registers a global interval which logs 'setInterval' to the console.

API Documentation

See here

Local changes (ocx)

  1. Add husky and commitlint
  • npx husky-init && npm install
  • npm i @commitlint/cli @commitlint/config-convential -D
  1. Add esbuild internal 'plugin' to copy files to right place (dev and prod)