cdoremus / fresh-webcomponents

Demos how to use Web Components with Deno Fresh

Home Page:https://fresh-webcomponents.deno.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deno Fresh Web Components Demo

This repo demos the use of native Web Components with Deno Fresh.

Usage

Make sure to install Deno: https://deno.land/manual/getting_started/installation

Start the project:

deno task dev

The dev task runs a build that uses esbuild to convert the TypeScript files to JavaScript and bundles all files in the components/wc folder into the static/wc/wc.esm.js file and then starts the Fresh server.

When you update files in components/wc, you need to stop the server and run deno task dev again to rebuild the web component files.

Deployment to Deno Deploy is done via the deploy.yml file in .github/workflows.

About

Demos how to use Web Components with Deno Fresh

https://fresh-webcomponents.deno.dev/


Languages

Language:JavaScript 58.8%Language:TypeScript 36.1%Language:CSS 5.1%