Skip to content

Commit 957cd66

Browse files
docs(examples): add vanilla TypeScript example for v0.1.0 smoke test
- Add index.html with rawscript boot script and .ts module import - Add main.ts demonstrating zero-config TS execution in browser - Serves as manual integration test for SW transpilation pipeline
1 parent bc97e60 commit 957cd66

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

examples/vanilla/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>rawscript — vanilla example</title>
6+
</head>
7+
<body>
8+
<script src="/dist/rawscript.js"></script>
9+
<script type="module" src="./main.ts"></script>
10+
</body>
11+
</html>

examples/vanilla/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const greeting: string = "rawscript works"
2+
console.log(greeting)
3+
4+
const el = document.createElement('h1')
5+
el.textContent = greeting
6+
document.body.appendChild(el)

0 commit comments

Comments
 (0)