I'm currently working on integrating Typescript into my ASP.NET Core MVC application in VS Code for the wwwroot client scripts. I've been following tutorials which primarily focus on using Visual Studio's compilation-on-save feature, but unfortunately, VS Code does not offer this capability. Having a background in the node stack and previous experience with ASP.NET before VS Code and folder-based projects, I am seeking guidance on how to manage and enhance the build pipeline.
My main questions revolve around how to incorporate a typescript compilation step into the existing build pipeline. Additionally, I'm curious about the best practices for managing client-side packages - should they be handled through nuget?
One approach I am considering is treating the client scripts as a separate project's bundled output and then using an additional script to sequentially build both the Typescript and ASP.NET projects. However, I would prefer to utilize the csproj's build process if possible to streamline the workflow.