- Visual Studio 2017 Enterprise
- ASP.NET MVC Application
- TypeScript 2.5 SDK
- Source control is in TFS
I have opted to use Microsoft's built-in property editor instead of creating a custom tsconfig.config file:
To streamline my workflow, I rely on Mad's Kristensen's Package Installer for NPM installations of Definitely Typed TypeScript definitions within my MVC web project.
This process results in the creation of a node_modules folder within the solution path:
Although I could use guidance like this SO post to perform a GLOBAL install using -g --prefix and place it in a specific folder such as:
MVCProjectFolder\ TypeScript\Npm\Modules
I have some concerns and would appreciate a more efficient method.
My inquiries are:
- Is there an alternate method to change the node_modules folder within Visual Studio without needing -g --prefix?
- What is the recommended way to bundle all the TS generated JavaScript in the project? (The TypeScript Build property option "Compile JavaScript output into file" does not seem to work)
- Do I only need to include the d.ts files in TFS so that the functionality will remain intact after syncing?
--
/// <reference path="../../node_modules/@types/jquery/index.d.ts" />
/// <reference path="../../node_modules/@types/handlebars/index.d.ts" />