Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .obsidian/community-plugins.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
[
"mermaid-popup",
"omnisearch",
"better-plugins-manager",
"copy-url-in-preview",
"pretty-properties",
"advanced-canvas",
"hot-reload",
"obsidian-weread-plugin",
"tag-wrangler",
"obsidian-github-stars-manager",
"simple-mind-map"
"tag-wrangler"
]
11 changes: 11 additions & 0 deletions .obsidian/plugins/hot-reload/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
14 changes: 14 additions & 0 deletions .obsidian/plugins/omnisearch/manifest.json
Original file line number Diff line number Diff line change
@@ -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
}
10 changes: 8 additions & 2 deletions scripts/test-plugin-manifest-ignore.mjs
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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,
Expand Down
Loading