From 24c359fb2f19c88bee70cc63c0f4cdc745618d8f Mon Sep 17 00:00:00 2001 From: tare <59001439+junghwa1996@users.noreply.github.com> Date: Thu, 12 Dec 2024 13:23:58 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=93=9D=20readme=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 41 +++++++---------------------------------- 1 file changed, 7 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index ef0e47e..ed19b2a 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,13 @@ -This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/pages/api-reference/create-next-app). +# wikid -## Getting Started +- 지인들의 위키를 직접 작성하고 공유하는 플랫폼 -First, run the development server: +# 명령어 -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. - -[API routes](https://nextjs.org/docs/pages/building-your-application/routing/api-routes) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. - -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/pages/building-your-application/routing/api-routes) instead of React pages. - -This project uses [`next/font`](https://nextjs.org/docs/pages/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. +### 실행 -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn-pages-router) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! - -## Deploy on Vercel +npm run dev -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. +### 빌드 -Check out our [Next.js deployment documentation](https://nextjs.org/docs/pages/building-your-application/deploying) for more details. +npm run build From 8f857b7939200d86fff2bf2f85154e42847da54f Mon Sep 17 00:00:00 2001 From: tare <59001439+junghwa1996@users.noreply.github.com> Date: Thu, 12 Dec 2024 13:53:43 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=94=A5=20=EC=B4=88=EA=B8=B0=20?= =?UTF-8?q?=EC=84=B8=ED=8C=85=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.json | 17 ++++++- eslint.config.mjs | 13 ------ package-lock.json | 2 +- package.json | 2 +- pages/api/hello.ts | 13 ------ pages/index.tsx | 113 +-------------------------------------------- postcss.config.js | 2 +- postcss.config.mjs | 8 ---- public/file.svg | 1 - public/globe.svg | 1 - public/next.svg | 1 - public/vercel.svg | 1 - public/window.svg | 1 - tailwind.config.js | 9 ---- 14 files changed, 19 insertions(+), 165 deletions(-) delete mode 100644 eslint.config.mjs delete mode 100644 pages/api/hello.ts delete mode 100644 postcss.config.mjs delete mode 100644 public/file.svg delete mode 100644 public/globe.svg delete mode 100644 public/next.svg delete mode 100644 public/vercel.svg delete mode 100644 public/window.svg delete mode 100644 tailwind.config.js diff --git a/.eslintrc.json b/.eslintrc.json index f8a16da..eb98c3b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,20 @@ { - "extends": ["next/core-web-vitals", "prettier"], + "extends": [ + "next/core-web-vitals", // Next.js 기본 규칙 + "airbnb", // Airbnb 스타일 가이드 + "airbnb/hooks", // React Hooks 관련 규칙 + "prettier" // Prettier와 충돌하지 않도록 조정 + ], "plugins": ["prettier"], "rules": { - "prettier/prettier": "error" + "prettier/prettier": "error", // Prettier를 ESLint 오류로 간주 + "react/react-in-jsx-scope": "off", // React 17+에서 불필요 + "import/prefer-default-export": "off", // 필요 시 규칙 비활성화 (옵션) + "react/jsx-props-no-spreading": "off" // Props 스프레드 허용 (옵션) + }, + "settings": { + "react": { + "version": "detect" // 프로젝트의 React 버전 자동 감지 + } } } diff --git a/eslint.config.mjs b/eslint.config.mjs deleted file mode 100644 index 546e4ff..0000000 --- a/eslint.config.mjs +++ /dev/null @@ -1,13 +0,0 @@ -import globals from 'globals'; -import pluginJs from '@eslint/js'; -import tseslint from 'typescript-eslint'; -import pluginReact from 'eslint-plugin-react'; - -/** @type {import('eslint').Linter.Config[]} */ -export default [ - { files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] }, - { languageOptions: { globals: globals.browser } }, - pluginJs.configs.recommended, - ...tseslint.configs.recommended, - pluginReact.configs.flat.recommended, -]; diff --git a/package-lock.json b/package-lock.json index feb688c..94a4a9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@tanstack/react-query": "^5.62.7", "axios": "^1.7.9", - "next": "15.1.0", + "next": "^15.1.0", "postcss-nesting": "^13.0.1", "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/package.json b/package.json index 85b03b8..61893ef 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-query": "^5.62.7", "axios": "^1.7.9", - "next": "15.1.0", + "next": "^15.1.0", "postcss-nesting": "^13.0.1", "react": "^19.0.0", "react-dom": "^19.0.0" diff --git a/pages/api/hello.ts b/pages/api/hello.ts deleted file mode 100644 index ea77e8f..0000000 --- a/pages/api/hello.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Next.js API route support: https://nextjs.org/docs/api-routes/introduction -import type { NextApiRequest, NextApiResponse } from "next"; - -type Data = { - name: string; -}; - -export default function handler( - req: NextApiRequest, - res: NextApiResponse, -) { - res.status(200).json({ name: "John Doe" }); -} diff --git a/pages/index.tsx b/pages/index.tsx index a8ec761..4ce0675 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,114 +1,3 @@ -import Image from "next/image"; -import { Geist, Geist_Mono } from "next/font/google"; - -const geistSans = Geist({ - variable: "--font-geist-sans", - subsets: ["latin"], -}); - -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", - subsets: ["latin"], -}); - export default function Home() { - return ( -
-
- Next.js logo -
    -
  1. - Get started by editing{" "} - - pages/index.tsx - - . -
  2. -
  3. Save and see your changes instantly.
  4. -
- -
- - Vercel logomark - Deploy now - - - Read our docs - -
-
- -
- ); + return
메인
; } diff --git a/postcss.config.js b/postcss.config.js index 980561b..cbb17e5 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,4 +1,4 @@ -module.exports = { +export default { plugins: { tailwindcss: {}, 'postcss-nesting': {}, diff --git a/postcss.config.mjs b/postcss.config.mjs deleted file mode 100644 index 1a69fd2..0000000 --- a/postcss.config.mjs +++ /dev/null @@ -1,8 +0,0 @@ -/** @type {import('postcss-load-config').Config} */ -const config = { - plugins: { - tailwindcss: {}, - }, -}; - -export default config; diff --git a/public/file.svg b/public/file.svg deleted file mode 100644 index 004145c..0000000 --- a/public/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/globe.svg b/public/globe.svg deleted file mode 100644 index 567f17b..0000000 --- a/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/next.svg b/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/vercel.svg b/public/vercel.svg deleted file mode 100644 index 7705396..0000000 --- a/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/window.svg b/public/window.svg deleted file mode 100644 index b2b2a44..0000000 --- a/public/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js deleted file mode 100644 index d947ab1..0000000 --- a/tailwind.config.js +++ /dev/null @@ -1,9 +0,0 @@ -/** @type {import('tailwindcss').Config} */ -module.exports = { - content: [], - theme: { - extend: {}, - }, - plugins: [], -} - From ee2838b52f085fa5ff5c42da97981914d6b1008f Mon Sep 17 00:00:00 2001 From: tare <59001439+junghwa1996@users.noreply.github.com> Date: Thu, 12 Dec 2024 13:57:26 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=94=A8=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=EB=AA=85=EB=A0=B9=EC=96=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 61893ef..e260d45 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "test": "echo \"No test specified\" && exit 1" }, "dependencies": { "@tanstack/react-query": "^5.62.7", From c7747a1f4c59d4945d1ed85f0e1ccac5b04dd4fe Mon Sep 17 00:00:00 2001 From: tare <59001439+junghwa1996@users.noreply.github.com> Date: Thu, 12 Dec 2024 14:04:32 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=94=A8=20test=20=ED=8C=A8=ED=82=A4?= =?UTF-8?q?=EC=A7=95=20script=20=EB=AA=85=EB=A0=B9=EC=96=B4=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c412587..9b7eb27 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '18' # 의존성 설치 - name: Install dependencies diff --git a/package.json b/package.json index e260d45..569b90b 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "next build", "start": "next start", "lint": "next lint", - "test": "echo \"No test specified\" && exit 1" + "test": "npm run lint" }, "dependencies": { "@tanstack/react-query": "^5.62.7", From 2631a9a4c547686cb0ec3c76cab55fed5fea5d74 Mon Sep 17 00:00:00 2001 From: tare <59001439+junghwa1996@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:16:27 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=F0=9F=94=A8=20=EB=A6=B0=ED=84=B0/=ED=8F=AC?= =?UTF-8?q?=EB=A9=A7=ED=84=B0=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.json | 2 -- next.config.ts | 2 +- pages/_app.tsx | 4 ++-- pages/_document.tsx | 2 +- tailwind.config.ts | 12 ++++++------ 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index eb98c3b..b50656a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,8 +1,6 @@ { "extends": [ "next/core-web-vitals", // Next.js 기본 규칙 - "airbnb", // Airbnb 스타일 가이드 - "airbnb/hooks", // React Hooks 관련 규칙 "prettier" // Prettier와 충돌하지 않도록 조정 ], "plugins": ["prettier"], diff --git a/next.config.ts b/next.config.ts index 3915163..0748d34 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,4 +1,4 @@ -import type { NextConfig } from "next"; +import type { NextConfig } from 'next'; const nextConfig: NextConfig = { /* config options here */ diff --git a/pages/_app.tsx b/pages/_app.tsx index a7a790f..c14313e 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,5 +1,5 @@ -import "@/styles/globals.css"; -import type { AppProps } from "next/app"; +import '@/styles/globals.css'; +import type { AppProps } from 'next/app'; export default function App({ Component, pageProps }: AppProps) { return ; diff --git a/pages/_document.tsx b/pages/_document.tsx index 628a733..f124b97 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -1,4 +1,4 @@ -import { Html, Head, Main, NextScript } from "next/document"; +import { Html, Head, Main, NextScript } from 'next/document'; export default function Document() { return ( diff --git a/tailwind.config.ts b/tailwind.config.ts index 1362b88..9143cf3 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,16 +1,16 @@ -import type { Config } from "tailwindcss"; +import type { Config } from 'tailwindcss'; export default { content: [ - "./pages/**/*.{js,ts,jsx,tsx,mdx}", - "./components/**/*.{js,ts,jsx,tsx,mdx}", - "./app/**/*.{js,ts,jsx,tsx,mdx}", + './pages/**/*.{js,ts,jsx,tsx,mdx}', + './components/**/*.{js,ts,jsx,tsx,mdx}', + './app/**/*.{js,ts,jsx,tsx,mdx}', ], theme: { extend: { colors: { - background: "var(--background)", - foreground: "var(--foreground)", + background: 'var(--background)', + foreground: 'var(--foreground)', }, }, },