When I create a new "HTMLWeb App" project, I get a .csproj with a few default options in the project XML for Typescript. Where can I find a list of all possible TypeScript build options?
Searching for the names of the 3 options currently in my project, such as "TypeScriptIncludeComments", returned no results on Google.
I found the list of options in the
.targets
file that shipped with the TypeScript installation. Here is the full list of options with the command line argument that gets actually sent to "tsc.exe" (the TypeScript compiler)--comments
--declaration
--module $(TypeScriptModuleKind)
--nolib
--out $(TypeScriptOutFile)
--sourcemap
--target $(TypeScriptTarget)
$(TypeScriptAdditionalFlags)
Update on Guptas's answer for Visual Studio 2015 RC. The Microsoft.TypeScript.targets file is now in c:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript.
--removeComments
--noImplicitAny
--declaration
--module "$(TypeScriptModuleKind)"
--out "$(TypeScriptOutFile)"
--outDir "$(TypeScriptOutDir)"
--sourcemap
--target $(TypeScriptTarget)
--noResolve
$(TypeScriptAdditionalFlags)
--mapRoot "$(TypeScriptMapRoot)"
--sourceRoot "$(TypeScriptSourceRoot)"
--codepage $(TypeScriptCodePage)
--charset $(TypeScriptCharset)
--emitBOM
--noLib
--preserveConstEnums
--suppressImplicitAnyIndexErrors
The easiest way to change any Typescript build options is with Web Extensions. I'd highly recommend it if you do any kind of web work with Visual Studio.