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

オープン
#11,885 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@jorge-ferreira-pii がすでに取り組んでいます。

2026年10月21日 から。

評価

この issue はまだ評価されていません。

説明

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.
主要言語
Verilog
スター
3.4k
フォーク
1.1k
平均マージ
3日 11時間
マージ済み PR(30日)
245

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

The-OpenROAD-Project/OpenROAD のほかの issue

The-OpenROAD-Project/OpenROAD の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。