Clone in a terminal:
Commit 3571f15
Johan Mattsson - 2026-10-28T15:19:43+00:00
3571f1510332e0c083e9a1d2aefc17193240712ajohan.mattsson.m@gmail.com

NPM example

Changed files (3)

Diff

diff --git a/examples/web/index.html b/examples/web/index.htmlnew file mode 100644index 0000000..f650097--- /dev/null+++ b/examples/web/index.html@@ -0,0 +1,12 @@+<!doctype html>+<html lang="en">+<head>+  <meta charset="UTF-8">+  <meta name="viewport" content="width=device-width, initial-scale=1">+  <title>Minimal JavaScript Website</title>+</head>+<body>+  <main-component></main-component>+  <script type="module" src="./src/app.js"></script>+</body>+</html>diff --git a/examples/web/run.sh b/examples/web/run.shnew file mode 100644index 0000000..b28281c--- /dev/null+++ b/examples/web/run.sh@@ -0,0 +1,2 @@+npm install ../main-component+python3 -m http.server 8080 --bind 127.0.0.1diff --git a/examples/web/src/app.js b/examples/web/src/app.jsnew file mode 100644index 0000000..80d50fb--- /dev/null+++ b/examples/web/src/app.js@@ -0,0 +1,2 @@+import init from 'main-component';+await init();

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112