๐๊ฐ๋ฐํ๊ฒฝ ์ธํ
1. typescript ์ค์น
npm install -g typescript
2. ๊ฒฝ๋ web server ์ธํ
npm init
npm install --save-dev lite-server
3. package.json์ ์์ ์คํฌ๋ฆฝํธ ์ถ๊ฐ
"scripts": {
"start": "lite-server"
},
4. run
npm start
5. tsconfig.json
tsc --init
tsconfig.json
{
"compilerOptions": {
"target": "es6",
"module": "commonjs", // ์น ๋ธ๋ผ์ฐ์ ํ๊ฒฝ amd ์ฌ์ฉ
"moduleResolution": "node", // module์ด amd๋ฉด classic ์ฌ์ฉ
"baseUrl": ".",
"paths": {
"*": ["node_modules/*"]
},
"sourceMap": true,
"outDir": "dist",
"downlevelIteration": true,
"esModuleInterop": true,
"noImplicitAny": false
},
"include": ["src/**/*"]
}
'Application Programming' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Three.js] Intro (0) | 2021.11.27 |
---|---|
[โ๏ธReact.Js] ๋ฆฌ์กํธ ํ๋ก์ ํธ ์์ฑ (0) | 2021.11.24 |
[Node.js] Modules (0) | 2021.09.20 |
[Node.js] Node.js ์ค์น (0) | 2021.09.19 |
[Flutter] HTTP ํต์ (0) | 2021.09.07 |