diff --git a/README.md b/README.md index fdd1a0a..339e529 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) diff --git a/deno.jsonc b/deno.jsonc index cc38c5f..4635adf 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -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/std@0.184.0/" - } + "importMap": "./import_map.json" } diff --git a/import_map.json b/import_map.json new file mode 100644 index 0000000..6c4c58f --- /dev/null +++ b/import_map.json @@ -0,0 +1,5 @@ +{ + "imports": { + "std/": "https://deno.land/std@0.184.0/" + } +}