Skip to content

Commit 28f4aac

Browse files
committed
Updated to new conventions
1 parent db6841d commit 28f4aac

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deno.lock

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Insert your plug description here
55

66
## Build
7-
To build this plug, make sure you have [SilverBullet installed](https://silverbullet.md/Install). Then, build the plug with:
7+
To build this plug, make sure you have [SilverBullet installed with Deno](https://silverbullet.md/Install/Deno). Then, build the plug with:
88

99
```shell
1010
deno task build
@@ -22,7 +22,7 @@ Then, copy the resulting `.plug.js` file into your space's `_plug` folder. Or bu
2222
deno task build && cp *.plug.js /my/space/_plug/
2323
```
2424

25-
SilverBullet will automatically sync and load the new version of the plug (or speed up this process by running the {[Sync: Now]} command).
25+
SilverBullet will automatically sync and load the new version of the plug, just watch the logs (browser and server) to see when this happens.
2626

2727
## Installation
2828
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

deno.jsonc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"importMap": "import_map.json",
32
"tasks": {
4-
"build": "silverbullet plug:compile --importmap import_map.json hello.plug.yaml",
5-
"watch": "silverbullet plug:compile --importmap import_map.json hello.plug.yaml -w"
3+
"build": "silverbullet plug:compile -c deno.jsonc hello.plug.yaml",
4+
"watch": "silverbullet plug:compile -c deno.jsonc hello.plug.yaml -w"
65
},
76
"lint": {
87
"rules": {
@@ -15,5 +14,8 @@
1514
"**/*.md",
1615
"*.plug.js"
1716
]
17+
},
18+
"imports": {
19+
"$sb/": "https://deno.land/x/silverbullet/plug-api/"
1820
}
1921
}

import_map.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)