tsSetting
์ฒซ ๋ฒ์งธ ๋ฐฉ๋ฒ : ์ฒ์๋ถํฐ ํ์
์คํฌ๋ฆฝํธ ํ๋ก์ ํธ๋ก ๋ง๋ค๊ธฐ
npx create-react-app app-name --template typescript ๋ ๋ฒ์งธ ๋ฐฉ๋ฒ : js๋ฆฌ์กํธ ํ๋ก์ ํธ๋ฅผ ts๋ฆฌ์กํธ ํ๋ก์ ํธ๋ก ์ ํํ๊ธฐ
package.json
{
"name": "rochest-frontend",
"version": "0.1.0",
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^27.0.1",
"@types/node": "^14.6.1",
"@types/react": "^16.9.48",
"@types/react-dom": "^17.0.9",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"ts-loader": "^8.0.3",
"typescript": "^3.9.7",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
} tsconfig.json
tsconfig-base.json
Last updated