Create a tiny working TypeScript example page
This commit is contained in:
parent
9b6cacda0e
commit
701f4853b5
3 changed files with 11 additions and 1 deletions
|
|
@ -31,6 +31,7 @@
|
|||
pkgs.air
|
||||
pkgs.autoprefixer
|
||||
pkgs.dart-sass
|
||||
pkgs.esbuild
|
||||
pkgs.go
|
||||
pkgs.goose
|
||||
pkgs.gotools
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
<html>
|
||||
<h1>Hi Eli</h1>
|
||||
<head>
|
||||
<script src="/static/bundle.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hi Eli 2</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
4
ts/main.ts
Normal file
4
ts/main.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// This will run when the page loads
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
console.log('Hello World');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue