Move inline js to typescript #24
Notifications
Due Date
No due date set.
Blocks
#23 use swc to minify html and js
rays/ipodderx-rs
Reference: rays/ipodderx-rs#24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently all script is in the html, move this to be separate typescript file(s)
Use https://github.com/PerryTS/perry to compile into js when deploying.
This will allow better auditing and code review of ts/js elements of this code base
Done in
26802d2, deployed, with swc instead of Perry (Perry builds native programs, not browser JavaScript). The script is in web/src/*.ts, split along its existing sections: util, feeds, feedpage, items, player, dialogs, events, and login. They are one script in one scope, concatenated in the order web/build.mjs lists them, not ES modules; that kept the change a move rather than a rewrite. npx tsc -p . type-checks them, loosely for now: strict is off and the DOM lookup helper returns any. Tightening that is a follow-up if you want it.