My Typescript app is built on AngularJS 2 with ASP.NET Core, and currently I store my TS files in the wwwroot directory. While this setup works well during development, I am concerned about how it will function in production. I aim to deploy only minified versions of the transpiled typescript files in production. One solution could be using gulp to minify the files in the wwwroot directory before deployment. However, I am unsure if this is the best practice.
Perhaps a better approach would be to keep my Angular app outside the wwwroot directory and use gulp to move necessary files into wwwroot during compile or deploy. In development, I would need to copy .ts, .js, and .map files for debugging purposes. This seems like a lot to handle, especially if transpiling on save.
I would appreciate any guidance on the best practices for this scenario.