Skip to content

Commit

Permalink
feat: 🎸 Make installable via deno.land and import_map
Browse files Browse the repository at this point in the history
  • Loading branch information
dkolba committed Apr 30, 2023
1 parent 042ef4f commit b275d11
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Extends the deno `file_server` from `std` with live reload via websocket.

## INSTALL

Install `lebertran` from this repo as a command-line tool:
Install latest version of `lebertran` from [deno.land:](https://deno.land/x/lebertran/)

deno install --allow-net --allow-read --import-map=deno.jsonc ./lebertran.ts
deno install --allow-net --allow-read --import-map=https://deno.land/x/lebertran/import_map.json https://deno.land/x/lebertran/lebertran.ts

## RUN

Expand All @@ -27,3 +27,7 @@ For local development `lebertran` will need localhost certificates (`openssl` ne
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

### PRIOR ART

`Lebertran` (code and name) was inspired by [`denoliver`](https://github.com/joakimunge/denoliver) from [@joakimunge](https://github.com/joakimunge)
4 changes: 1 addition & 3 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
"dev": "deno run --watch --allow-read --allow-net lebertran.ts -k localhost.key -c localhost.crt www",
"certs": "openssl req -x509 -sha256 -nodes -newkey rsa:2048 -days 365 -subj '/CN=localhost' -keyout localhost.key -out localhost.crt"
},
"imports": {
"std/": "https://deno.land/[email protected]/"
}
"importMap": "./import_map.json"
}
5 changes: 5 additions & 0 deletions import_map.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"imports": {
"std/": "https://deno.land/[email protected]/"
}
}

0 comments on commit b275d11

Please sign in to comment.