Skip to content

Add TypeScript - #41

Merged
bvisness merged 26 commits into
masterfrom
typescript
Jul 30, 2026
Merged

Add TypeScript#41
bvisness merged 26 commits into
masterfrom
typescript

Conversation

@bvisness

Copy link
Copy Markdown
Member

Now that TypeScript is written in Go, we can actually add it to our workflow very easily. Support has been added to our Esbuild config just like for CSS, and TS can be run like go tool tsgo -p src/rawdata/js.

The structure of src/rawdata/js is: all files directly in that folder are considered an entry point, while all files in /lib are not and must be imported via ESM imports. The general expected pattern is one JS file per page that imports whatever it needs.

This implies that we should move away from plain old scripts on the page, onclick="foo" attributes, etc. etc.

@bvisness
bvisness marked this pull request as ready for review July 30, 2026 23:08
@bvisness
bvisness merged commit 265a268 into master Jul 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant