TypeScript์ master ๋ธ๋์น์ nightly ๋น๋๋ ํํ์ ํ์ค์(PST) ์์ ๊น์ง NPM๊ณผ NuGet์ ๋ฐฐํฌ๋ฉ๋๋ค.
๋๊ตฌ๋ฅผ ์ฌ์ฉํ์ฌ ๊ฐ์ ธ์ค๋ ๋ฐฉ๋ฒ๊ณผ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
npm install -g typescript@next์ฃผ์์ฌํญ: NuGet ํจํค์ง๋ฅผ ์ฌ์ฉํ๋๋ก ํ๋ก์ ํธ๋ฅผ ๊ตฌ์ฑํด์ผ ํฉ๋๋ค. NuGet๋ฅผ ์ฌ์ฉํ๋๋ก MSBuild ํ๋ก์ ํธ ๊ตฌ์ฑ์ ์ฐธ์กฐํ์ญ์์ค.
nightly๋ www.myget.org์์ ์ด์ฉ ๊ฐ๋ฅํฉ๋๋ค.
๋ ํจํค์ง๊ฐ ์์ต๋๋ค:
Microsoft.TypeScript.Compiler: ๋๊ตฌ๋ง ์ฌ์ฉ(tsc.exe,lib.d.ts, ๋ฑ.) .Microsoft.TypeScript.MSBuild: ์์ ๊ฐ์ ๋๊ตฌ๋ฟ๋ง ์๋๋ผ MSBuild ์์ ๋ฐ ๋์ (Microsoft.TypeScript.targets,Microsoft.TypeScript.Default.props, ๋ฑ.)
nightly drop์ ์ฌ์ฉํ๋๋ก IDE๋ฅผ ์
๋ฐ์ดํธํ ์ ์์ต๋๋ค.
๋จผ์ npm์ ํตํด ํจํค์ง๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค.
npm ํจํค์ง๋ฅผ ์ ์ญ์ผ๋ก ์ค์นํ๊ฑฐ๋ ๋ก์ปฌ์ ์๋ node_modules ํด๋์ ์ค์นํ ์ ์์ต๋๋ค.
์ด ์น์
์ ๋๋จธ์ง ๋ถ๋ถ์์๋ typescript@next๊ฐ ์ด๋ฏธ ์ค์น๋์ด ์๋ค๊ณ ๊ฐ์ ํฉ๋๋ค.
.vscode/settings.json ํ์ผ์ ๋ค์๊ณผ ๊ฐ์ด ์
๋ฐ์ดํธํ์ธ์:
"typescript.tsdk": "<path to your folder>/node_modules/typescript/lib"์์ธํ ๋ด์ฉ์ VSCode ๋ฌธ์๋ฅผ ์ฐธ์กฐํ์ธ์.
Settings - User ํ์ผ์ ๋ค์๊ณผ ๊ฐ์ด ์
๋ฐ์ดํธํ์ธ์:
"typescript_tsdk": "<path to your folder>/node_modules/typescript/lib"์์ธํ ๋ด์ฉ์ ์๋ธ๋ผ์ ํ ์คํธ๋ฅผ ์ํ TypeScript ํ๋ฌ๊ทธ์ธ ์ค์น ๋ฌธ์๋ฅผ ์ฐธ์กฐํ์ธ์.
์ฃผ์์ฌํญ: ๋๋ถ๋ถ์ ๋ณ๊ฒฝ ์ฌํญ์๋ ์๋ก์ด ๋ฒ์ ์ VS TypeScript ํ๋ฌ๊ทธ์ธ์ ์ค์นํ ํ์๋ ์์ต๋๋ค.
ํ์ฌ nightly ๋น๋์๋ ์ ์ฒด ํ๋ฌ๊ทธ์ธ ์ค์ ์ด ํฌํจ๋์ด ์์ง ์์ง๋ง nightly ๊ธฐ๋ฐ์ผ๋ก ์ค์น ํ๋ก๊ทธ๋จ์ ๋ฐฐํฌํ๊ธฐ ์ํด ๋ ธ๋ ฅํ๊ณ ์์ต๋๋ค.
-
VSDevMode.ps1 ์คํฌ๋ฆฝํธ๋ฅผ ๋ค์ด๋ก๋ํ์ธ์.
๋ํ ์ปค์คํ ์ธ์ด ์๋น์ค ํ์ผ ์ฌ์ฉ์ ๋ํ ์ํค ํ์ด์ง๋ฅผ ์ฐธ์กฐํ์ธ์.
-
PowerShell ์ปค๋งจ๋ ๋ผ์ธ ์ฐฝ์์ ๋ค์์ ์คํํฉ๋๋ค:
VS 2015:
VSDevMode.ps1 14 -tsScript <path to your folder>/node_modules/typescript/libVS 2013:
VSDevMode.ps1 12 -tsScript <path to your folder>/node_modules/typescript/libPreferences > Languages & Frameworks > TypeScript๋ฅผ ์ ํํฉ๋๋ค:
TypeScript ๋ฒ์ : npm์ผ๋ก ์ค์นํ ๊ฒฝ์ฐ:
/usr/local/lib/node_modules/typescript/lib
File > Settings > Languages & Frameworks > TypeScript๋ฅผ ์ ํํฉ๋๋ค:
TypeScript ๋ฒ์ : npm์ผ๋ก ์ค์นํ ๊ฒฝ์ฐ:
C:\Users\USERNAME\AppData\Roaming\npm\node_modules\typescript\lib