From 09fa69e8a8e6e13fe95e8b3ecf1523dfe0ff393c Mon Sep 17 00:00:00 2001 From: MINKI SUNG <162106492+wannagola@users.noreply.github.com> Date: Fri, 27 Jun 2025 01:42:24 +0900 Subject: [PATCH 1/5] =?UTF-8?q?feat:=20alias=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +++++++++ package-lock.json | 22 ++++++++++++++++++++-- package.json | 1 + src/App.tsx | 4 ++-- src/main.tsx | 4 ++-- tsconfig.app.json | 8 +++++++- 6 files changed, 41 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cdf3e5c8..c837ee96 100644 --- a/README.md +++ b/README.md @@ -1 +1,10 @@ # react-gift-login + +# TODO +# 홈과 로그인(WIP) 레포지토리를 클론해요. : CLEAR +# 불필요한 파일, 코드를 정리해요. : CLEAR +# 절대경로로 Import 할 수 있게 alias를 설정해요. : CLEAR +# Prettier가 무엇인지 찾아보고 추가해주세요. +# emotion 스타일 라이브러리를 추가하고, reset css를 적용해주세요. +# 기본 폰트로 Pretendard를 적용해주세요. +# 기능 단위로 나누어 커밋을 해주세요. \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index d4896fe1..09883eae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "kakao-gift", + "name": "react-gift-login", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "kakao-gift", + "name": "react-gift-login", "version": "0.0.0", "dependencies": { "react": "^19.1.0", @@ -13,6 +13,7 @@ }, "devDependencies": { "@eslint/js": "^9.25.0", + "@types/node": "^24.0.4", "@types/react": "^19.1.2", "@types/react-dom": "^19.1.2", "@vitejs/plugin-react": "^4.4.1", @@ -1416,6 +1417,16 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/node": { + "version": "24.0.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.4.tgz", + "integrity": "sha512-ulyqAkrhnuNq9pB76DRBTkcS6YsmDALy6Ua63V8OhrOBgbcYt6IOdzpw5P1+dyRIyMerzLkeYWBeOXPpA9GMAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.8.0" + } + }, "node_modules/@types/react": { "version": "19.1.8", "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.8.tgz", @@ -3188,6 +3199,13 @@ "typescript": ">=4.8.4 <5.9.0" } }, + "node_modules/undici-types": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "dev": true, + "license": "MIT" + }, "node_modules/update-browserslist-db": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", diff --git a/package.json b/package.json index fcf08815..afbb35e6 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ }, "devDependencies": { "@eslint/js": "^9.25.0", + "@types/node": "^24.0.4", "@types/react": "^19.1.2", "@types/react-dom": "^19.1.2", "@vitejs/plugin-react": "^4.4.1", diff --git a/src/App.tsx b/src/App.tsx index 3d7ded3f..e3f6d741 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,7 @@ import { useState } from 'react' -import reactLogo from './assets/react.svg' +import reactLogo from '@/assets/react.svg' import viteLogo from '/vite.svg' -import './App.css' +import '@/App.css' function App() { const [count, setCount] = useState(0) diff --git a/src/main.tsx b/src/main.tsx index bef5202a..0e79b71c 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,7 +1,7 @@ import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' -import './index.css' -import App from './App.tsx' +import '@/index.css' +import App from '@/App.tsx' createRoot(document.getElementById('root')!).render( diff --git a/tsconfig.app.json b/tsconfig.app.json index c9ccbd4c..23a6954e 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -21,7 +21,13 @@ "noUnusedParameters": true, "erasableSyntaxOnly": true, "noFallthroughCasesInSwitch": true, - "noUncheckedSideEffectImports": true + "noUncheckedSideEffectImports": true, + + + "baseUrl": ".", + "paths": { + "@/*": ["src/*"] + } }, "include": ["src"] } From 51f46939f0a262a825a9b06081fb059940bc9bd4 Mon Sep 17 00:00:00 2001 From: MINKI SUNG <162106492+wannagola@users.noreply.github.com> Date: Fri, 27 Jun 2025 02:00:00 +0900 Subject: [PATCH 2/5] =?UTF-8?q?feat:=20alias=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 8b0f57b9..7ce5dfac 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,14 @@ + import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' +import path from 'path' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], + resolve: { + alias: { + '@': path.resolve(__dirname, 'src'), + }, + }, }) From 0556e4896e6bd5d2255f19f4d77657d8952e02fb Mon Sep 17 00:00:00 2001 From: MINKI SUNG <162106492+wannagola@users.noreply.github.com> Date: Fri, 27 Jun 2025 02:01:20 +0900 Subject: [PATCH 3/5] =?UTF-8?q?feat:=20alias=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.node.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tsconfig.node.json b/tsconfig.node.json index 9728af2d..365ebcb3 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -19,7 +19,14 @@ "noUnusedParameters": true, "erasableSyntaxOnly": true, "noFallthroughCasesInSwitch": true, - "noUncheckedSideEffectImports": true + "noUncheckedSideEffectImports": true, + + /* 절대경로 설정 */ + "baseUrl": ".", + "paths": { + "@/*": ["src/*"] + } + }, "include": ["vite.config.ts"] } From b30f9880823a53074c48a808e16fe6a46ccc4e6f Mon Sep 17 00:00:00 2001 From: MINKI SUNG <162106492+wannagola@users.noreply.github.com> Date: Fri, 27 Jun 2025 02:14:59 +0900 Subject: [PATCH 4/5] =?UTF-8?q?prettier=20=EC=84=A4=EC=A0=95=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 7 +++++++ package-lock.json | 17 +++++++++++++++++ package.json | 1 + 3 files changed, 25 insertions(+) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..81f69113 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "semi": true, + "singleQuote": true, + "printWidth": 80, + "tabWidth": 2, + "trailingComma": "es5" +} diff --git a/package-lock.json b/package-lock.json index 09883eae..de6735ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.19", "globals": "^16.0.0", + "prettier": "^3.6.1", "typescript": "~5.8.3", "typescript-eslint": "^8.30.1", "vite": "^6.3.5" @@ -2856,6 +2857,22 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.1.tgz", + "integrity": "sha512-5xGWRa90Sp2+x1dQtNpIpeOQpTDBs9cZDmA/qs2vDNN2i18PdapqY7CmBeyLlMuGqXJRIOPaCaVZTLNQRWUH/A==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", diff --git a/package.json b/package.json index afbb35e6..60cf9f27 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.19", "globals": "^16.0.0", + "prettier": "^3.6.1", "typescript": "~5.8.3", "typescript-eslint": "^8.30.1", "vite": "^6.3.5" From 46dc3ab435acd943bd60d24e76b9ee556a620d06 Mon Sep 17 00:00:00 2001 From: MINKI SUNG <162106492+wannagola@users.noreply.github.com> Date: Fri, 27 Jun 2025 02:16:56 +0900 Subject: [PATCH 5/5] =?UTF-8?q?prettier=20=EC=84=A4=EC=A0=95=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c837ee96..1f40d734 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,17 @@ # react-gift-login # TODO -# 홈과 로그인(WIP) 레포지토리를 클론해요. : CLEAR -# 불필요한 파일, 코드를 정리해요. : CLEAR + +# 홈과 로그인(WIP) 레포지토리를 클론해요. : CLEAR + +# 불필요한 파일, 코드를 정리해요. : CLEAR + # 절대경로로 Import 할 수 있게 alias를 설정해요. : CLEAR -# Prettier가 무엇인지 찾아보고 추가해주세요. + +# Prettier가 무엇인지 찾아보고 추가해주세요. : CLEAR + # emotion 스타일 라이브러리를 추가하고, reset css를 적용해주세요. + # 기본 폰트로 Pretendard를 적용해주세요. -# 기능 단위로 나누어 커밋을 해주세요. \ No newline at end of file + +# 기능 단위로 나누어 커밋을 해주세요.