일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- React
- rabbitmq
- linux
- node.js
- javascript
- php
- Go
- deep learning
- 블레이드 템플릿
- Redux
- laravel
- Switch
- python
- Machine Learning
- mariadb
- fastapi
- For
- docker
- AWS
- 기초 수학
- NCP
- Node
- nodejs
- Babel
- CentOS
- Redis
- Backbone.js
- webpack
- nginx
- SQL
- Today
- Total
목록Javascript/Typescript (2)
개발일기

1. package.json 파일 생성 npm init -y yarn init -y 2. 타입스크립트 설치 npm install -D typescript yarn add -D typescript 3. tsconfig.json 파일 생성 tsc --init tsconfig.json 파일이 생성되면 컴파일 옵션에 포함되어져 있는 옵션들에 대한 주석이 달려있는 파일이 생성된다. 4. tsconfig의 주요 속성 { "compilerOptions": { "outDir": "./build/", "sourceMap": true, "noImplicitAny": true, "module": "commonjs", "target": "es5", "jsx": "react", }, "exclude": ["node_module..

{ "compilerOptions": { "target": "es5", "module": "commonjs", "sourceMap": true, "outDir": "dist", "downlevelIteration": true, "strict": true, "noImplicitAny": false, "moduleResolution": "node", "baseUrl": ".", "paths": { "*": ["node_modules/*"] }, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true } } // tsconfig.json tsconfig.json에서 jsx라는 항목을 빼먹었기 때문에 발생하는 ..