diff --git a/.obsidian/community-plugins.json b/.obsidian/community-plugins.json index 09bff647..dcb3df99 100644 --- a/.obsidian/community-plugins.json +++ b/.obsidian/community-plugins.json @@ -1,5 +1,4 @@ [ - "mermaid-popup", "omnisearch", "better-plugins-manager", "copy-url-in-preview", @@ -7,7 +6,5 @@ "advanced-canvas", "hot-reload", "obsidian-weread-plugin", - "tag-wrangler", - "obsidian-github-stars-manager", - "simple-mind-map" + "tag-wrangler" ] diff --git a/.obsidian/plugins/hot-reload/manifest.json b/.obsidian/plugins/hot-reload/manifest.json new file mode 100644 index 00000000..cfb02178 --- /dev/null +++ b/.obsidian/plugins/hot-reload/manifest.json @@ -0,0 +1,11 @@ +{ + "id": "hot-reload", + "name": "Hot Reload", + "author": "PJ Eby", + "authorUrl": "https://github.com/pjeby", + "version": "0.3.0", + "minAppVersion": "1.6.7", + "isDesktopOnly": false, + "fundingUrl": "https://dirtsimple.org/tips/hot-reload", + "description": "Automatically reload in-development plugins when their files are changed" +} diff --git a/.obsidian/plugins/omnisearch/manifest.json b/.obsidian/plugins/omnisearch/manifest.json new file mode 100644 index 00000000..042bf45f --- /dev/null +++ b/.obsidian/plugins/omnisearch/manifest.json @@ -0,0 +1,14 @@ +{ + "id": "omnisearch", + "name": "Omnisearch", + "version": "1.15.2", + "minAppVersion": "1.3.0", + "description": "A search engine that just works", + "author": "Simon Cambier", + "authorUrl": "https://github.com/scambier/obsidian-omnisearch", + "fundingUrl": { + "Github": "https://github.com/sponsors/scambier", + "Ko-fi": "https://ko-fi.com/scambier" + }, + "isDesktopOnly": false +} diff --git a/scripts/test-plugin-manifest-ignore.mjs b/scripts/test-plugin-manifest-ignore.mjs index edf1fe28..0052927e 100644 --- a/scripts/test-plugin-manifest-ignore.mjs +++ b/scripts/test-plugin-manifest-ignore.mjs @@ -1,6 +1,6 @@ import assert from "node:assert/strict"; import { execFileSync } from "node:child_process"; -import { readFileSync } from "node:fs"; +import { existsSync, readFileSync } from "node:fs"; import { dirname, join } from "node:path"; import { test } from "node:test"; import { fileURLToPath } from "node:url"; @@ -25,9 +25,15 @@ test("plugin manifest.json files are not ignored", () => { ); }); -test("every enabled community plugin can commit its manifest.json", () => { +test("every enabled community plugin has a loadable manifest and bundle", () => { const enabled = JSON.parse(readFileSync(join(root, ".obsidian/community-plugins.json"), "utf8")); for (const id of enabled) { + const pluginDir = join(root, ".obsidian/plugins", id); + const manifestPath = join(pluginDir, "manifest.json"); + assert.ok(existsSync(manifestPath), `${id}/manifest.json is missing`); + assert.ok(existsSync(join(pluginDir, "main.js")), `${id}/main.js is missing`); + const manifest = JSON.parse(readFileSync(manifestPath, "utf8")); + assert.equal(manifest.id, id, `${id}/manifest.json declares id ${manifest.id}`); assert.equal( isIgnored(`.obsidian/plugins/${id}/manifest.json`), false,