From 28f4aacf84533e36f0944eab9dd66f35e321fad0 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 30 Jul 2024 14:34:50 +0200 Subject: [PATCH] Updated to new conventions --- .gitignore | 1 + README.md | 4 ++-- deno.jsonc | 8 +++++--- import_map.json | 5 ----- 4 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 .gitignore delete mode 100644 import_map.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..941fcf1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +deno.lock \ No newline at end of file diff --git a/README.md b/README.md index ec9d11e..4c397d4 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Insert your plug description here ## Build -To build this plug, make sure you have [SilverBullet installed](https://silverbullet.md/Install). Then, build the plug with: +To build this plug, make sure you have [SilverBullet installed with Deno](https://silverbullet.md/Install/Deno). Then, build the plug with: ```shell deno task build @@ -22,7 +22,7 @@ Then, copy the resulting `.plug.js` file into your space's `_plug` folder. Or bu deno task build && cp *.plug.js /my/space/_plug/ ``` -SilverBullet will automatically sync and load the new version of the plug (or speed up this process by running the {[Sync: Now]} command). +SilverBullet will automatically sync and load the new version of the plug, just watch the logs (browser and server) to see when this happens. ## Installation If you would like to install this plug straight from Github, make sure you have the `.js` file committed to the repo and simply add diff --git a/deno.jsonc b/deno.jsonc index 7451999..8b813b0 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,8 +1,7 @@ { - "importMap": "import_map.json", "tasks": { - "build": "silverbullet plug:compile --importmap import_map.json hello.plug.yaml", - "watch": "silverbullet plug:compile --importmap import_map.json hello.plug.yaml -w" + "build": "silverbullet plug:compile -c deno.jsonc hello.plug.yaml", + "watch": "silverbullet plug:compile -c deno.jsonc hello.plug.yaml -w" }, "lint": { "rules": { @@ -15,5 +14,8 @@ "**/*.md", "*.plug.js" ] + }, + "imports": { + "$sb/": "https://deno.land/x/silverbullet/plug-api/" } } diff --git a/import_map.json b/import_map.json deleted file mode 100644 index 90939f5..0000000 --- a/import_map.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "imports": { - "$sb/": "https://deno.land/x/silverbullet/plug-api/" - } -}