-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
# LEBERTRAN | ||
|
||
Extends the deno file_server from std with live reload via websocket. | ||
Extends the deno `file_server` from `std` with live reload via websocket. | ||
|
||
## INSTALL | ||
|
||
deno install --allow-net --allow-read lebertran.ts | ||
Install `lebertran` from this repo as a command-line tool: | ||
|
||
deno install --allow-net --allow-read --import-map=deno.jsonc ./lebertran.ts | ||
|
||
## RUN | ||
|
||
In plain HTTP/WS mode: | ||
|
||
lebertran someFolderOnYourComputer | ||
|
||
In secure HTTPS mode you will need to pass a certificate and key file: | ||
|
||
lebertran -c localhost.crt -k localhost.key someFolderOnYourComputer", | ||
|
||
## DEVELOPMENT | ||
|
||
deno run --allow-net --allow-read --watch lebertran.ts someFolderOnYourComputer | ||
For local development `lebertran` will need localhost certificates (`openssl` needs to be installed): | ||
|
||
deno task certs | ||
|
||
Then `lebertran` can be started in secure mode (HTTPS and WSS enabled) mode with automatic reloading. The contents of the `www` folder in the root directory will be used : | ||
|
||
deno task dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters