Skip to content

Commit

Permalink
Updated to new conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
zefhemel committed Jul 30, 2024
1 parent db6841d commit 28f4aac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deno.lock
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 5 additions & 3 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -15,5 +14,8 @@
"**/*.md",
"*.plug.js"
]
},
"imports": {
"$sb/": "https://deno.land/x/silverbullet/plug-api/"
}
}
5 changes: 0 additions & 5 deletions import_map.json

This file was deleted.

0 comments on commit 28f4aac

Please sign in to comment.