Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 802 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 802 Bytes

webcomponents-deno

fooling around with deno and web-components. Backing up in case my laptop fails.

this runs using Deno. Get that installed, clone this repo.

Both server and client-side JS are compiled using Deno.

To compile the client-side stuff, do:

deno bundle --config ./web_components.json src/main.ts js/main.js --watch

To run the server, do:

deno run --config ./server.json --allow-net --allow-read server.ts

Then open a browser to localhost:8000. You could even have both running in two different terminals, and the changes should take effect ever time you save the client-side stuff, and then refresh the browser.

Tested with latest (v.deno 1.21.0). Look in server.json/web_components.json for more compilation options. Cheers