microsoft / microsoft/TypeScript

Provide per-project build progress in `tsc -b`

Aperta
#53,763 3 commenti 18 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Awaiting More Feedback Suggestion
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
1g 19h
PR unite (30g)
117

Descrizione

Suggestion

🔍 Search Terms

tsc diagnostics tsc progress

✅ Viability Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

Please consider printing by default (in TTY mode) progress about solution compilation. It would be a minimalistic version of --diagnostics flag.

Also note that currently --diagnostics is not easily usable for tsc -b because it does not say which project each statistics belong to.

📃 Motivating Example

I patched tsc to print out every project that it will build and that prints time spent for each project. It can be done via simple xterm commands, no need for any dependencies.

image

💻 Use Cases

This has helped us to:

  • realize that some packages were never cached but always rebuilt (seems because of overlapping included files)
  • see just how long some common reused packages compile vs the consumers
  • visualize the dependency graph, allowing developers to see that they are including references they really don't need.

Overall this has been eye opening in regards to what contributes to our build times.

As mentioned above --diagnostics could be used to achieve this (though it is bit too verbose to get an overview and it is optional) however it not printing the project name is a blocker to use it.

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

Start with the tsc -b entry point and existing --diagnostics behavior, focusing on how solution projects are identified and how their statistics are reported. Done means TTY output provides per-project build progress by default and diagnostics can be associated with the project they describe.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
build-system, cli
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.