webcomponents / webcomponents.org

Home of the web components community
https://www.webcomponents.org
Apache License 2.0
359 stars 95 forks source link

Add site dev server #1349

Closed justinfagnani closed 1 year ago

justinfagnani commented 1 year ago

Adds a custom dev server based on @web/dev-server, along with a Koa router middleware that handles the /catalog URL space.

Right now there's a simple hard-coded response wired in at /catalog/element/:path that parses the :path as a packageName/elementName pair and shows them on the page.

Part of https://github.com/webcomponents/webcomponents.org/issues/1346