Skip to content

Commit 77f4497

Browse files
authored
compiler options in msbuild κ²€ν†  (#102)
1 parent 4edbd54 commit 77f4497

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

β€Žpages/compiler-options-in-msbuild.md

+16-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## κ°œμš”
1+
## κ°œμš” (Overview)
22

3-
컴파일러 μ˜΅μ…˜μ€ MSBuild ν”„λ‘œμ νŠΈ λ‚΄μ˜ MSBuild 속성을 μ‚¬μš©ν•˜μ—¬ 지정할 수 μžˆμŠ΅λ‹ˆλ‹€.
3+
컴파일러 μ˜΅μ…˜μ€ MSBuild ν”„λ‘œμ νŠΈ λ‚΄μ˜ MSBuild ν”„λ‘œνΌν‹°λ₯Ό μ‚¬μš©ν•˜μ—¬ 지정할 수 μžˆμŠ΅λ‹ˆλ‹€.
44

5-
## 예제
5+
## 예제 (Example)
66

77
```XML
88
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
@@ -18,9 +18,9 @@
1818
Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets')" />
1919
```
2020

21-
## 맡핑
21+
## 맡핑 (Mappings)
2222

23-
컴파일러 μ˜΅μ…˜ | MSBuild 속성 이름 | ν—ˆμš©λœ κ°’
23+
컴파일러 μ˜΅μ…˜ | MSBuild ν”„λ‘œνΌν‹° 이름 | ν—ˆμš©λœ κ°’
2424
---------------------------------------------|--------------------------------------------|-----------------
2525
`--allowJs` | *MSBuildμ—μ„œ μ§€μ›λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€* |
2626
`--allowSyntheticDefaultImports` | TypeScriptAllowSyntheticDefaultImports | boolean
@@ -35,6 +35,8 @@
3535
`--disableSizeLimit` | *MSBuildμ—μ„œ μ§€μ›λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€* |
3636
`--emitBOM` | TypeScriptEmitBOM | boolean
3737
`--emitDecoratorMetadata` | TypeScriptEmitDecoratorMetadata | boolean
38+
`--emitDeclarationOnly` | TypeScriptEmitDeclarationOnly | boolean
39+
`--esModuleInterop` | TypeScriptESModuleInterop | boolean
3840
`--experimentalAsyncFunctions` | TypeScriptExperimentalAsyncFunctions | boolean
3941
`--experimentalDecorators` | TypeScriptExperimentalDecorators | boolean
4042
`--forceConsistentCasingInFileNames` | TypeScriptForceConsistentCasingInFileNames | boolean
@@ -87,32 +89,33 @@
8789
`--strict` | TypeScriptStrict | boolean
8890
`--strictFunctionTypes` | TypeScriptStrictFunctionTypes | boolean
8991
`--strictNullChecks` | TypeScriptStrictNullChecks | boolean
92+
`--strictPropertyInitialization` | TypeScriptStrictPropertyInitialization | boolean
9093
`--stripInternal` | TypeScriptStripInternal | boolean
9194
`--suppressExcessPropertyErrors` | TypeScriptSuppressExcessPropertyErrors | boolean
9295
`--suppressImplicitAnyIndexErrors` | TypeScriptSuppressImplicitAnyIndexErrors | boolean
9396
`--target` | TypeScriptTarget | `ES3`, `ES5`, λ˜λŠ” `ES6`
9497
`--traceResolution` | *MSBuildμ—μ„œ μ§€μ›λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€* |
9598
`--types` | *MSBuildμ—μ„œ μ§€μ›λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€* |
9699
`--typeRoots` | *MSBuildμ—μ„œ μ§€μ›λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€* |
100+
`--useDefineForClassFields` | TypeScriptUseDefineForClassFields | boolean
97101
`--watch` | *MSBuildμ—μ„œ μ§€μ›λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€* |
98102
*MSBuild μ „μš© μ˜΅μ…˜* | TypeScriptAdditionalFlags | *λͺ¨λ“  컴파일러 μ˜΅μ…˜*
99103

100-
## μ—¬λŸ¬λΆ„μ˜ Visual Studio λ²„μ „μ—μ„œ μ§€μ›λ˜λŠ” κΈ°λŠ₯은 λ¬΄μ—‡μΌκΉŒμš”?
104+
## λ‚˜μ˜ Visual Studio λ²„μ „μ—μ„œ μ§€μ›ν•˜λŠ” 것은? (What is supported in my version of Visual Studio?)
101105

102106
`C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets` νŒŒμΌμ„ ν™•μΈν•˜μ„Έμš”.
103107
MSBuild XML νƒœκ·Έμ™€ `tsc` 컴파일러 μ˜΅μ…˜ μ‚¬μ΄μ˜ μ‹ λ’°ν•  수 μžˆλŠ” 맡핑이 여기에 μžˆμŠ΅λ‹ˆλ‹€.
104108

105-
## ToolsVersion
109+
## νˆ΄λ²„μ „ (ToolsVersion)
106110

107-
ν”„λ‘œμ νŠΈ 파일의 `<TypeScriptToolsVersion>1.7</TypeScriptToolsVersion>` 속성 값은 λΉŒλ“œν•˜λŠ” 데 μ‚¬μš©ν•  컴파일러 버전을 μ‹λ³„ν•©λ‹ˆλ‹€ (이 μ˜ˆμ œμ—μ„œλŠ” 1.7).
111+
ν”„λ‘œμ νŠΈ 파일의 `<TypeScriptToolsVersion>1.7</TypeScriptToolsVersion>` ν”„λ‘œνΌν‹° 값은 λΉŒλ“œν•˜λŠ” 데 μ‚¬μš©ν•  컴파일러 버전을 μ‹λ³„ν•©λ‹ˆλ‹€ (이 μ˜ˆμ œμ—μ„œλŠ” 1.7).
108112
μ΄λ ‡κ²Œ ν•˜λ©΄ ν”„λ‘œμ νŠΈκ°€ λ‹€λ₯Έ 컴퓨터에 μžˆλŠ” λ™μΌν•œ λ²„μ „μ˜ μ»΄νŒŒμΌλŸ¬μ— λŒ€ν•œ λΉŒλ“œλ₯Ό ν—ˆμš©ν•©λ‹ˆλ‹€.
109113

110-
λ§Œμ•½ `TypeScriptToolsVersion`이 μ§€μ •λ˜μ§€ μ•ŠμœΌλ©΄ μ„€μΉ˜λœ μ΅œμ‹  컴파일러 버전을 μ‚¬μš©ν•˜μ—¬ λΉŒλ“œν•©λ‹ˆλ‹€.
114+
λ§Œμ•½ `TypeScriptToolsVersion`이 μ§€μ •λ˜μ§€ μ•ŠμœΌλ©΄, μ„€μΉ˜λœ μ΅œμ‹  컴파일러 버전을 μ‚¬μš©ν•˜μ—¬ λΉŒλ“œν•©λ‹ˆλ‹€.
111115

112-
μ΅œμ‹  λ²„μ „μ˜ TSλ₯Ό μ‚¬μš©ν•˜λŠ” μ‚¬μš©μžμ—κ²ŒλŠ” 첫 λ‘œλ“œ μ‹œ ν”„λ‘œμ νŠΈλ₯Ό μ—…κ·Έλ ˆμ΄λ“œν•˜λΌλŠ” λ©”μ‹œμ§€κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€
116+
μ΅œμ‹  λ²„μ „μ˜ TSλ₯Ό μ‚¬μš©ν•˜λŠ” μ‚¬μš©μžμ—κ²ŒλŠ”, 첫 λ‘œλ“œ μ‹œ ν”„λ‘œμ νŠΈλ₯Ό μ—…κ·Έλ ˆμ΄λ“œν•˜λΌλŠ” λ©”μ‹œμ§€κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€.
113117

114118
## TypeScriptCompileBlocked
115119

116-
λ‹€λ₯Έ λΉŒλ“œ 도ꡬλ₯Ό μ‚¬μš©ν•˜μ—¬ ν”„λ‘œμ νŠΈ (예: κ±Έν”„, 그런트 λ“±) 그리고 κ°œλ°œμ„ μœ„ν•œ VS와 디버깅 ν™˜κ²½μ„ μ‚¬μš©ν•˜λŠ” 경우 ν”„λ‘œμ νŠΈμ—μ„œ `<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>`λ₯Ό μ„€μ •ν•˜μ„Έμš”.
117-
118-
μ΄λ ‡κ²Œ ν•˜λ©΄ λͺ¨λ“  νŽΈμ§‘ 지원이 μ œκ³΅λ˜μ§€λ§Œ F5ν‚€λ₯Ό λˆŒλŸ¬λ„ λΉŒλ“œκ°€ μ§€μ›λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.
120+
λ‹€λ₯Έ λΉŒλ“œ 도ꡬλ₯Ό μ‚¬μš©ν•˜μ—¬ ν”„λ‘œμ νŠΈ (예: gulp, grunt λ“±) 그리고 κ°œλ°œμ„ μœ„ν•œ VS와 디버깅 ν™˜κ²½μ„ μ‚¬μš©ν•˜λŠ” 경우 ν”„λ‘œμ νŠΈμ—μ„œ `<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>`λ₯Ό μ„€μ •ν•˜μ„Έμš”.
121+
μ΄λ ‡κ²Œ ν•˜λ©΄ λͺ¨λ“  νŽΈμ§‘ 지원이 μ œκ³΅λ˜μ§€λ§Œ F5ν‚€λ₯Ό λˆŒλŸ¬λ„ λΉŒλ“œλ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

0 commit comments

Comments
Β (0)