This is a modified version of https://github.com/obsidianmd/obsidian-sample-plugin.
*.ts
files are put in thesrc
directory- The plugin class definition and settings-related code are separated into
main.ts
andsettings.ts
- Release GitHub action is already there
- Don't forget to go to
Settings > Actions > General > Workflow permissions
and turn onRead and write permissions
- Don't forget to go to
- The default branch has been renamed
main
- Create a new repository using this template ("Use this template" > "Create a new repository")
- Clone the created repository
- Modify at least the
id
&name
fields inmanifest.json
. - Modify
package.json
accordingly. - Run
npm i
to install the dependencies - Run
npm run dev
ornpm run build
to compile your plugin
- If you haven't, go to
Settings > Actions > General > Workflow permissions
and turn onRead and write permissions
- Bump the version in
manifest.json
(andpackage.json
) and then commit & push the change git tag -a <version> -m "<version>"
git push origin <version>
. This triggers the release action.- When the action is completed, go to the release page of your repository. You will find a newly created draft release.
- Release the draft when you're ready.