microsoft / microsoft/TypeScript
Allow prepending --watch with --clean in CLI --build mode?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
Suggestion
🔍 Search Terms
tsc watch build clean
✅ 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
It would be nice to be able to run tsc --build --clean --watch and have the --clean operation run before the --watch operation. Today we have to run these commands separately.
📃 Motivating Example
For developing TypeScript itself, I'll frequently run tsc -b src/tsc -w to get built/local/tsc.js created. But other commands such as gulp runtests seem to clobber over the inputs and/or outputs so I've found I need to first tsc -b src/tsc --clean when running them.
💻 Use Cases
In general, this would be a nice little shortcut for folks who want to first clean, then watch.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne bei der tsc-CLI-Verarbeitung für --build, --clean und --watch und verfolge, wie diese Optionen derzeit kombiniert oder abgelehnt werden. Als abgeschlossen gilt die Änderung, wenn tsc --build --clean --watch zuerst bereinigt und anschließend in den Watch-Modus wechselt, während das bestehende Befehlsverhalten unverändert bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- build-system, cli
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100