|
1 |
| -## κ°μ |
| 1 | +## κ°μ (Overview) |
2 | 2 |
|
3 |
| -μ»΄νμΌλ¬ μ΅μ
μ MSBuild νλ‘μ νΈ λ΄μ MSBuild μμ±μ μ¬μ©νμ¬ μ§μ ν μ μμ΅λλ€. |
| 3 | +μ»΄νμΌλ¬ μ΅μ
μ MSBuild νλ‘μ νΈ λ΄μ MSBuild νλ‘νΌν°λ₯Ό μ¬μ©νμ¬ μ§μ ν μ μμ΅λλ€. |
4 | 4 |
|
5 |
| -## μμ |
| 5 | +## μμ (Example) |
6 | 6 |
|
7 | 7 | ```XML
|
8 | 8 | <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
|
|
18 | 18 | Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets')" />
|
19 | 19 | ```
|
20 | 20 |
|
21 |
| -## 맡ν |
| 21 | +## 맡ν (Mappings) |
22 | 22 |
|
23 |
| -μ»΄νμΌλ¬ μ΅μ
| MSBuild μμ± μ΄λ¦ | νμ©λ κ° |
| 23 | +μ»΄νμΌλ¬ μ΅μ
| MSBuild νλ‘νΌν° μ΄λ¦ | νμ©λ κ° |
24 | 24 | ---------------------------------------------|--------------------------------------------|-----------------
|
25 | 25 | `--allowJs` | *MSBuildμμ μ§μλμ§ μμ΅λλ€* |
|
26 | 26 | `--allowSyntheticDefaultImports` | TypeScriptAllowSyntheticDefaultImports | boolean
|
|
35 | 35 | `--disableSizeLimit` | *MSBuildμμ μ§μλμ§ μμ΅λλ€* |
|
36 | 36 | `--emitBOM` | TypeScriptEmitBOM | boolean
|
37 | 37 | `--emitDecoratorMetadata` | TypeScriptEmitDecoratorMetadata | boolean
|
| 38 | +`--emitDeclarationOnly` | TypeScriptEmitDeclarationOnly | boolean |
| 39 | +`--esModuleInterop` | TypeScriptESModuleInterop | boolean |
38 | 40 | `--experimentalAsyncFunctions` | TypeScriptExperimentalAsyncFunctions | boolean
|
39 | 41 | `--experimentalDecorators` | TypeScriptExperimentalDecorators | boolean
|
40 | 42 | `--forceConsistentCasingInFileNames` | TypeScriptForceConsistentCasingInFileNames | boolean
|
|
87 | 89 | `--strict` | TypeScriptStrict | boolean
|
88 | 90 | `--strictFunctionTypes` | TypeScriptStrictFunctionTypes | boolean
|
89 | 91 | `--strictNullChecks` | TypeScriptStrictNullChecks | boolean
|
| 92 | +`--strictPropertyInitialization` | TypeScriptStrictPropertyInitialization | boolean |
90 | 93 | `--stripInternal` | TypeScriptStripInternal | boolean
|
91 | 94 | `--suppressExcessPropertyErrors` | TypeScriptSuppressExcessPropertyErrors | boolean
|
92 | 95 | `--suppressImplicitAnyIndexErrors` | TypeScriptSuppressImplicitAnyIndexErrors | boolean
|
93 | 96 | `--target` | TypeScriptTarget | `ES3`, `ES5`, λλ `ES6`
|
94 | 97 | `--traceResolution` | *MSBuildμμ μ§μλμ§ μμ΅λλ€* |
|
95 | 98 | `--types` | *MSBuildμμ μ§μλμ§ μμ΅λλ€* |
|
96 | 99 | `--typeRoots` | *MSBuildμμ μ§μλμ§ μμ΅λλ€* |
|
| 100 | +`--useDefineForClassFields` | TypeScriptUseDefineForClassFields | boolean |
97 | 101 | `--watch` | *MSBuildμμ μ§μλμ§ μμ΅λλ€* |
|
98 | 102 | *MSBuild μ μ© μ΅μ
* | TypeScriptAdditionalFlags | *λͺ¨λ μ»΄νμΌλ¬ μ΅μ
*
|
99 | 103 |
|
100 |
| -## μ¬λ¬λΆμ Visual Studio λ²μ μμ μ§μλλ κΈ°λ₯μ 무μμΌκΉμ? |
| 104 | +## λμ Visual Studio λ²μ μμ μ§μνλ κ²μ? (What is supported in my version of Visual Studio?) |
101 | 105 |
|
102 | 106 | `C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets` νμΌμ νμΈνμΈμ.
|
103 | 107 | MSBuild XML νκ·Έμ `tsc` μ»΄νμΌλ¬ μ΅μ
μ¬μ΄μ μ λ’°ν μ μλ 맡νμ΄ μ¬κΈ°μ μμ΅λλ€.
|
104 | 108 |
|
105 |
| -## ToolsVersion |
| 109 | +## ν΄λ²μ (ToolsVersion) |
106 | 110 |
|
107 |
| -νλ‘μ νΈ νμΌμ `<TypeScriptToolsVersion>1.7</TypeScriptToolsVersion>` μμ± κ°μ λΉλνλ λ° μ¬μ©ν μ»΄νμΌλ¬ λ²μ μ μλ³ν©λλ€ (μ΄ μμ μμλ 1.7). |
| 111 | +νλ‘μ νΈ νμΌμ `<TypeScriptToolsVersion>1.7</TypeScriptToolsVersion>` νλ‘νΌν° κ°μ λΉλνλ λ° μ¬μ©ν μ»΄νμΌλ¬ λ²μ μ μλ³ν©λλ€ (μ΄ μμ μμλ 1.7). |
108 | 112 | μ΄λ κ² νλ©΄ νλ‘μ νΈκ° λ€λ₯Έ μ»΄ν¨ν°μ μλ λμΌν λ²μ μ μ»΄νμΌλ¬μ λν λΉλλ₯Ό νμ©ν©λλ€.
|
109 | 113 |
|
110 |
| -λ§μ½ `TypeScriptToolsVersion`μ΄ μ§μ λμ§ μμΌλ©΄ μ€μΉλ μ΅μ μ»΄νμΌλ¬ λ²μ μ μ¬μ©νμ¬ λΉλν©λλ€. |
| 114 | +λ§μ½ `TypeScriptToolsVersion`μ΄ μ§μ λμ§ μμΌλ©΄, μ€μΉλ μ΅μ μ»΄νμΌλ¬ λ²μ μ μ¬μ©νμ¬ λΉλν©λλ€. |
111 | 115 |
|
112 |
| -μ΅μ λ²μ μ TSλ₯Ό μ¬μ©νλ μ¬μ©μμκ²λ 첫 λ‘λ μ νλ‘μ νΈλ₯Ό μ
κ·Έλ μ΄λνλΌλ λ©μμ§κ° νμλ©λλ€ |
| 116 | +μ΅μ λ²μ μ TSλ₯Ό μ¬μ©νλ μ¬μ©μμκ²λ, 첫 λ‘λ μ νλ‘μ νΈλ₯Ό μ
κ·Έλ μ΄λνλΌλ λ©μμ§κ° νμλ©λλ€. |
113 | 117 |
|
114 | 118 | ## TypeScriptCompileBlocked
|
115 | 119 |
|
116 |
| -λ€λ₯Έ λΉλ λꡬλ₯Ό μ¬μ©νμ¬ νλ‘μ νΈ (μ: κ±Έν, κ·Έλ°νΈ λ±) κ·Έλ¦¬κ³ κ°λ°μ μν VSμ λλ²κΉ
νκ²½μ μ¬μ©νλ κ²½μ° νλ‘μ νΈμμ `<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>`λ₯Ό μ€μ νμΈμ. |
117 |
| - |
118 |
| -μ΄λ κ² νλ©΄ λͺ¨λ νΈμ§ μ§μμ΄ μ 곡λμ§λ§ F5ν€λ₯Ό λλ¬λ λΉλκ° μ§μλμ§ μμ΅λλ€. |
| 120 | +λ€λ₯Έ λΉλ λꡬλ₯Ό μ¬μ©νμ¬ νλ‘μ νΈ (μ: gulp, grunt λ±) κ·Έλ¦¬κ³ κ°λ°μ μν VSμ λλ²κΉ
νκ²½μ μ¬μ©νλ κ²½μ° νλ‘μ νΈμμ `<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>`λ₯Ό μ€μ νμΈμ. |
| 121 | +μ΄λ κ² νλ©΄ λͺ¨λ νΈμ§ μ§μμ΄ μ 곡λμ§λ§ F5ν€λ₯Ό λλ¬λ λΉλλμ§ μμ΅λλ€. |
0 commit comments