1
0
silverbullet/website/🔨 Development.md

26 lines
863 B
Markdown
Raw Normal View History

2022-06-28 12:14:15 +00:00
## Stack
2022-10-29 14:57:12 +00:00
Silver Bullet is written in [TypeScript](https://www.typescriptlang.org/) and built on top of the excellent [CodeMirror 6](https://codemirror.net/) editor component. Additional UI is built using Preact. [ES Build](https://esbuild.github.io) is used to build both the front-end and back-end bundles. The server backend runs as a HTTP server on Deno using Oak.
2022-06-28 12:14:15 +00:00
## Development
2022-10-29 14:57:12 +00:00
Requirements: [Deno](https://deno.land/) 1.26 or newer.
2022-06-28 12:14:15 +00:00
To run, after clone:
2022-10-10 12:55:48 +00:00
```shell
deno task build
```
2022-06-28 12:14:15 +00:00
2022-10-29 14:57:12 +00:00
You can then run the server in “watch mode” (automatically restarting when you change source files) with:
2022-10-10 12:55:48 +00:00
```shell
2022-10-29 14:57:12 +00:00
deno task watch-server <PATH-TO-YOUR-SPACE>
2022-10-10 12:55:48 +00:00
```
2022-06-28 12:14:15 +00:00
2022-10-29 14:57:12 +00:00
After this initial build, it's convenient to run three commands in parallel (in separate terminals):
2022-06-28 12:14:15 +00:00
```shell
2022-10-10 12:55:48 +00:00
deno task watch-web
2022-10-29 14:57:12 +00:00
deno task watch-server <PATH-TO-YOUR-SPACE>
2022-10-10 12:55:48 +00:00
deno task watch-plugs
2022-06-28 12:14:15 +00:00
```