No description
Find a file
isaprettycoolguy@protonmail.com 5a4783bf60 fix bugs with river/road tool
2026-03-09 15:10:19 -04:00
.claude/commands upgrade modal, improve UI/UX significantly 2026-03-08 12:18:55 -04:00
icons upgrade modal, improve UI/UX significantly 2026-03-08 12:18:55 -04:00
src fix bugs with river/road tool 2026-03-09 15:10:19 -04:00
.gitignore init commit 2026-02-12 19:27:36 -05:00
_Index_of_plugin.md init commit 2026-02-12 19:27:36 -05:00
CLAUDE.md iadd hex table view and filters 2026-03-09 13:09:18 -04:00
data.json fix bugs with river/road tool 2026-03-09 15:10:19 -04:00
esbuild.config.mjs reorganize code 2026-03-08 14:33:32 -04:00
main.ts reorganize code 2026-03-08 14:33:32 -04:00
manifest.json reorganize code 2026-03-08 14:33:32 -04:00
mouse_scroll.js fix bugs with adding terrain, make smoother, sketch out landmark adding 2026-02-14 13:01:42 -05:00
package-lock.json fix bugs with adding terrain, make smoother, sketch out landmark adding 2026-02-14 13:01:42 -05:00
package.json reorganize code 2026-03-08 14:33:32 -04:00
README.md reorganize code 2026-03-08 14:33:32 -04:00
styles.css iadd hex table view and filters 2026-03-09 13:09:18 -04:00
tsconfig.json init commit 2026-02-12 19:27:36 -05:00
version-bump.mjs init commit 2026-02-12 19:27:36 -05:00
versions.json init commit 2026-02-12 19:27:36 -05:00
yarn.lock make terrain modal and make links world relative 2026-02-17 13:57:15 -05:00

Duckmage Obsidian Plugin

Development

  1. Install dependencies

    npm install
    
  2. Build

    • npm run dev — watch mode (rebuilds on save)
    • npm run build — production build
  3. Install in Obsidian

    • Copy the entire plugin folder into your vaults .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 doesnt appear).

Troubleshooting

  • "Failed to load plugin duckmage-plugin" — Usually means main.js is missing. Run npm run build in this folder so that main.js is generated from main.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.