From 6f7758e98f3717dbd46d7acd04e8c9aa9d5652eb Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 8 Oct 2023 04:35:37 +0200 Subject: [PATCH] chore: add Special directories section --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 5e63129..c4d4111 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,16 @@ npm run dev 4. open the browser to `https://localhost:3000` (or what the dev server said) +## Special directories +**src/pages** +- file based routing for `.html` files + +**src/components** +- custom element constructor class files go here (only `.js` files for now) +- all components are automatically registered using their file names (e.g., a `hello-world.js` component can be used as `` element) + + + ## Ambitious Goals We want a way to: 1. create web apps with vanilla custom elements