mirror of
https://github.com/sbuffkin/hexmaker.git
synced 2026-07-22 14:30:24 +00:00
No description
| .claude/commands | ||
| icons | ||
| .gitignore | ||
| _Index_of_plugin.md | ||
| CLAUDE.md | ||
| data.json | ||
| esbuild.config.mjs | ||
| main.ts | ||
| manifest.json | ||
| mouse_scroll.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| styles.css | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
| yarn.lock | ||
Duckmage Obsidian Plugin
A template Obsidian plugin. Customize manifest.json, main.ts, and styles.css for your vault.
Development
-
Install dependencies
npm install -
Build
npm run dev— watch mode (rebuilds on save)npm run build— production build
-
Install in Obsidian
- Copy the entire
pluginfolder into your vault’s.obsidian/plugins/duckmage-plugin/(create the folder if needed), or symlink this folder there. - Ensure these files are present in that folder:
main.js,manifest.json,styles.css. - In Obsidian: Settings → Community plugins → Turn on “Duckmage Plugin” (enable Developer mode if the plugin doesn’t appear).
- Copy the entire
Troubleshooting
- "Failed to load plugin duckmage-plugin" — Usually means
main.jsis missing. Runnpm run buildin this folder so thatmain.jsis generated frommain.ts. Obsidian loads the compiled JS, not the TypeScript source. - Viewing logs — In Obsidian, press Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac) to open Developer tools. Check the Console tab for red error messages when you enable the plugin or use its commands.
Files
| File | Purpose |
|---|---|
main.ts |
Plugin logic (ribbon, commands, settings) |
manifest.json |
Plugin id, name, version, min Obsidian version |
styles.css |
Plugin styles |
versions.json |
Version history for community plugin releases |
After editing main.ts, run npm run dev or npm run build to produce main.js.