Starting a new Obsidian plugin checklist
up:: Obsidian Plugin Development
- Navigate to an empty directory
- Remove any folders with
rm -rf foldername
- Remove any folders with
- Open the Obsidian Sample Plugin and press
use this template
- Clone your fork:
git clone https://github.com/YOURREPO .
- I like to start by cloning one of my plugins instead sometimes:
git clone https://github.com/selfire1/obsidian-luna-dark-mode .
- I like to start by cloning one of my plugins instead sometimes:
- Run
npm i
to initialise npm - Resetting the plugin
- Delete unnecessary folders
- Empty
CHANGELOG.md
- Update the documentation
- Clear
README.md
(for me: add Buy me a coffee) - Update
LICENSE
file
- Clear
- Change the plugin name
-
manifest.json
- Change
id
,name
,version
,description
- Change
-
manifest-beta.json
- Copy and paste from
manifest.json
- Copy and paste from
-
package.json
- Update
name
(which isid
),version
anddescription
- Update
-
workflows/release.yml
: Changeenv.PLUGIN_NAME
toid
-
- Create a new repo on github
- Initialise on git
- If a
.git
folder already exists:-
git remote add origin REPOURL
-
git branch -M main
-
git add .
-
git commit -m "🎉 init"
-
- If a
.git
folder doesn’t exist-
git init
-
git commit -m "🎉 init"
-
git branch -M main
-
git remote add origin REPOURL
-
git push -u origin main
-
- Rename to
main
-
git checkout -b main origin/master --no-track
-
git push -u origin main
-
git remote set-head origin main
-
- Install standard version
- Start developing!
- If a
- Install
github cli
viabrew
–brew install gh
- Set up Automatically Open the Current Directory in VS Code From Terminal
This will create:
- public repo
- open in new vscode window