web: move the viewer's front end from JavaScript to TypeScript

Aperta
#11,885 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@jorge-ferreira-pii ci sta già lavorando.

Dal 21/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

web
Description

Move the web viewer's front-end code (src/web/src/*.js) from plain JavaScript to TypeScript, so we get type checking and can use an effective linter. This was suggested by @sombraSoft.

Suggested Solution

An incremental migration, so open web PRs don't all conflict at once:

  1. Add a linter for the current JavaScript and run it in CI.
  2. Add aspect-build/rules_ts and type-check with ts_project. esbuild only strips types and never checks them. Start with the existing .js files (allowJs + checkJs / // @ts-check), so errors are found without renaming any file.
  3. Convert the files to .ts one module at a time, compiled by ts_project. esbuild keeps bundling the output, as it bundles the .js today.
Lingua principale
Verilog
Stelle
3.4k
Fork
1.1k
Merge medio
3g 11h
PR unite (30g)
245

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di The-OpenROAD-Project/OpenROAD

Tutte le issue di The-OpenROAD-Project/OpenROAD

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.