| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project demonstrates the use of Declarative Shadow DOM (DSD) with Preact, showcasing reusable components like buttons and counters. It includes a server-side rendering setup and a build pipeline for packaging the project.
. ├── components/ # Reusable Preact components ├── dom/ # DOM-related scripts ├── elements/ # Custom elements with Declarative Shadow DOM ├── elements.html # HTML template for elements ├── functions/ # Build and bundling scripts ├── package/ # Packaged output for npm ├── signals/ # Signal-related utilities ├── templates/ # HTML and CSS templates ├── main.tsx # Entry point for the server ├── importmap.json # Import map for module resolution ├── deno.json # Deno configuration └── .gitignore # Git ignore file
To start the development server:
deno task devThis will serve the application and watch for changes.
To build the project for npm:
The output will be available in the package/ directory.
The server serves the application and static files. Access the application at http://localhost:8000.
The project uses an import map for module resolution.
| Back | FazBrowse Home | New Git URL |