TypeScript 환경설정

제론·2022년 6월 23일
0
post-thumbnail

타입스크립트 프로젝트 환경설정

$ npm init -y

pacakage.json 생성

$npm i -D typescript

타입스크립트 설치

tsconfig.json 설정

{
  "compilerOptions": {
    "strict": true,
    "target": "ES2015",
    "outDir": "dist",
    "baseUrl": "./"
  },
  "include": [
    "src/**/*.ts"
  ]
}

다양한 옵션들 임의로 설정할 수 있음!

profile
Software Developer

0개의 댓글