Typed build + lint + unit-test toolchain for inject/ scripts
Facebook Messenger on your desktop, without the Facebook clutter
Brought to you by:
kristoffer-r
Originally created by: kristofferR
`inject/messenger.js` is 1,993 lines of untyped, untested, unlinted JS with no build step (`node --check` is the only CI gate). Add a light toolchain:
Tickets: #59
Tickets: #70
Tickets: #71
Tickets: #72
Tickets: #74
Originally posted by: kristofferR
Done on
main. The injected scripts are now typed TypeScript modules underinject/src/, bundled to single injected files via esbuild (inject/build.ts), with Biome lint/format (biome.json) andbun testunit coverage for the pure logic — including the examples called out here: unread parsing (unread.test.ts), thread-href regex (threads.test.ts), and l.php/link stripping (links.test.ts). It's wired into CI via the "Inject scripts (lint, typecheck, test, build)" check, which also fails on generated-bundle drift.Ticket changed by: kristofferR