microsoft / microsoft/TypeScript
Package compiler as `dotnet tool` and publish on nuget
@joj ci sta già lavorando.
Dal 22/12/2023.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.4k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
🔍 Search Terms
dotnet tool nuget Microsoft.TypeScript.MSBuild
✅ Viability Checklist
- 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 isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
⭐ Suggestion
TypeScript is already packaged as the Microsoft.TypeScript.MSBuild nuget, which internally is self-contained.
That is really smart and useful for .NET devs, except when building non-trivial apps.
Please allow us to use it as a dotnet tool as well. That would be even simpler than a msbuild auto-task, so the heavy lifting seems to have already been done.
📃 Motivating Example
It would be much more useful as a dotnet tool, as we could use it inside msbuild, or from the terminal, and in CI, etc.
💻 Use Cases
-
What do you want to use this for? I want to use it manually inside of
msbuild, instead of letting it do all the work magically. It would be easier to write msbuild tasks that work in a particular way in dev and in CI. -
What shortcomings exist with current approaches? The automatic and magic msbuild tasks are nice, but limited.
-
What workarounds are you using in the meantime? Using node the normal way, just for
tsc. That is not a problem in the node-world, but in .NET that is cumbersome and harder to maintain, especially for non-Node devs. The idea of packaging it as a nuget was brilliant, but needs to also be a dotnet tool.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.