What are the TypeScript project build configuration options?

后端 未结 3 1630
予麋鹿
予麋鹿 2020-12-18 14:27

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

3条回答
  •  攒了一身酷
    2020-12-18 15:27

    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.

    • TypeScriptRemoveComments ..... --removeComments
    • TypeScriptNoImplicitAny ..... --noImplicitAny
    • TypeScriptGeneratesDeclarations ..... --declaration
    • TypeScriptModuleKind ..... --module "$(TypeScriptModuleKind)"
    • TypeScriptOutFile ..... --out "$(TypeScriptOutFile)"
    • TypeScriptOutDir ..... --outDir "$(TypeScriptOutDir)"
    • TypeScriptSourceMap ..... --sourcemap
    • TypeScriptTarget ..... --target $(TypeScriptTarget)
    • TypeScriptNoResolve ..... --noResolve
    • TypeScriptAdditionalFlags ..... $(TypeScriptAdditionalFlags)
    • TypeScriptMapRoot ..... --mapRoot "$(TypeScriptMapRoot)"
    • TypeScriptSourceRoot ..... --sourceRoot "$(TypeScriptSourceRoot)"
    • TypeScriptCodePage ..... --codepage $(TypeScriptCodePage)
    • TypeScriptCharset ..... --charset $(TypeScriptCharset)
    • TypeScriptEmitBOM ..... --emitBOM
    • TypeScriptNoLib ..... --noLib
    • TypeScriptPreserveConstEnums ..... --preserveConstEnums
    • TypeScriptSuppressImplicitAnyIndexErrors ..... --suppressImplicitAnyIndexErrors

提交回复
热议问题