-
Notifications
You must be signed in to change notification settings - Fork 3
feat : turborepo 기본 설정 #353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
manNomi
wants to merge
10
commits into
solid-connection:main
Choose a base branch
from
manNomi:feat/turborepo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
472534a
feat: migrate package manager from npm to pnpm
manNomi b092fcc
fix: resolve TypeScript errors in mentor application form
manNomi 8978edc
chore: resolve merge conflicts with upstream/main for pnpm migration
manNomi 9633b89
🔧 commitlint에 Gitmoji 지원 추가
manNomi da9a77f
🔧 pnpm-lock.yaml 동기화
manNomi c848426
🔧 chore: 모노레포 구조를 위한 .gitignore 업데이트
manNomi ba65b99
🔧 chore: Turborepo 모노레포 설정 추가
manNomi b744bc1
📦 chore: 모노레포 의존성 업데이트
manNomi 8c2a131
refactor: 🗑️ 기존 단일 앱 구조 제거
manNomi 26018bf
feat: ✨ 모노레포 구조 추가
manNomi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,3 +37,6 @@ next-env.d.ts | |
|
|
||
| # Sentry Config File | ||
| .sentryclirc | ||
|
|
||
| # Turborepo | ||
| .turbo | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| npx --no -- commitlint --edit ${1} | ||
| pnpm dlx commitlint --edit ${1} | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| echo "🔍 Running lint check before push..." | ||
| npm run lint | ||
| pnpm run lint | ||
|
|
||
| echo "🔍 Running type check before push..." | ||
| npm run typecheck | ||
| pnpm run typecheck | ||
|
|
||
| echo "✅ All checks passed!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Next.js 호환성을 위한 설정 | ||
| shamefully-hoist=true | ||
| auto-install-peers=true | ||
| strict-peer-dependencies=false | ||
|
|
||
| # 기본 설정 | ||
| registry=https://registry.npmjs.org/ | ||
| enable-pre-post-scripts=true | ||
| lockfile=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Dependencies | ||
| node_modules | ||
|
|
||
| # Build outputs | ||
| .next | ||
| out | ||
| build | ||
| dist | ||
|
|
||
| # Generated files | ||
| *.min.js | ||
| *.min.css | ||
| next-env.d.ts | ||
|
|
||
| # Cache | ||
| .cache | ||
| .turbo | ||
|
|
||
| # Coverage | ||
| coverage | ||
|
|
||
| # Vercel | ||
| .vercel | ||
|
|
||
| # Documentation | ||
| 클로드.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,134 @@ | ||
| /** | ||
| * ESLint 설정 파일 | ||
| * Next.js + TypeScript 프로젝트용 | ||
| * | ||
| * 주요 설정: | ||
| * - TypeScript 파서 사용 | ||
| * - Next.js 및 TypeScript 권장 규칙 적용 | ||
| * - Prettier와의 충돌 방지 | ||
| */ | ||
| module.exports = { | ||
| root: true, | ||
| parser: "@typescript-eslint/parser", | ||
| parserOptions: { | ||
| ecmaVersion: "latest", | ||
| sourceType: "module", | ||
| project: "./tsconfig.json", | ||
| }, | ||
| env: { | ||
| browser: true, | ||
| es2021: true, | ||
| node: true, | ||
| }, | ||
| plugins: ["@typescript-eslint", "prettier"], | ||
| extends: [ | ||
| // Next.js 기본 설정 | ||
| "next", | ||
| // Next.js TypeScript 설정 (plugin:@typescript-eslint/recommended 기반) | ||
| "next/typescript", | ||
| // TypeScript ESLint 권장 규칙 | ||
| "plugin:@typescript-eslint/recommended", | ||
| // Prettier를 ESLint 규칙으로 실행 | ||
| "plugin:prettier/recommended", | ||
| ], | ||
| overrides: [ | ||
| { | ||
| // 설정 파일들은 TypeScript 프로젝트에 포함되지 않으므로 project 옵션 비활성화 | ||
| env: { | ||
| node: true, | ||
| }, | ||
| files: [".eslintrc.{js,cjs}", "*.config.{js,mjs,ts}"], | ||
| parserOptions: { | ||
| sourceType: "script", | ||
| project: null, | ||
| }, | ||
| }, | ||
| ], | ||
| rules: { | ||
| // ========================================== | ||
| // React 관련 규칙 | ||
| // ========================================== | ||
|
|
||
| // JSX 사용 시 React import 불필요 (React 17+) | ||
| "react/react-in-jsx-scope": "off", | ||
|
|
||
| // JSX 허용 파일 확장자 | ||
| "react/jsx-filename-extension": [1, { extensions: [".js", ".jsx", ".tsx"] }], | ||
|
|
||
| // defaultProps 필수 여부 비활성화 | ||
| "react/require-default-props": "off", | ||
|
|
||
| // 함수 컴포넌트는 화살표 함수로 정의 | ||
| "react/function-component-definition": [1, { namedComponents: "arrow-function" }], | ||
|
|
||
| // ========================================== | ||
| // Import 관련 규칙 | ||
| // ========================================== | ||
|
|
||
| // import 순서는 Prettier 플러그인에서 처리 | ||
| "import/order": "off", | ||
|
|
||
| // import 시 파일 확장자 생략 (warning으로 설정) | ||
| "import/extensions": "off", | ||
|
|
||
| // 단일 export 시 default export 권장 (warning) | ||
| "import/prefer-default-export": "off", | ||
|
|
||
| // ========================================== | ||
| // 일반 JavaScript 규칙 | ||
| // ========================================== | ||
|
|
||
| // console.log 허용 (개발 편의) | ||
| "no-console": "off", | ||
|
|
||
| // alert 허용 | ||
| "no-alert": "off", | ||
|
|
||
| // 정의 전 사용 허용 (TypeScript에서 처리) | ||
| "no-use-before-define": "off", | ||
|
|
||
| // 미사용 변수 - 기본 규칙 비활성화 (TypeScript 규칙과 충돌 방지) | ||
| "no-unused-vars": "off", | ||
|
|
||
| // ========================================== | ||
| // TypeScript 관련 규칙 | ||
| // ========================================== | ||
|
|
||
| // 미사용 변수 경고 (TypeScript용 - 기본 규칙 대신 사용) | ||
| "@typescript-eslint/no-unused-vars": "warn", | ||
|
|
||
| // any 타입 사용 경고 (error -> warn) | ||
| "@typescript-eslint/no-explicit-any": "warn", | ||
|
|
||
| // any 타입 관련 규칙 (경고로 설정) | ||
| "@typescript-eslint/no-unsafe-assignment": "warn", | ||
| "@typescript-eslint/no-unsafe-member-access": "warn", | ||
| "@typescript-eslint/no-unsafe-return": "warn", | ||
| "@typescript-eslint/no-unsafe-call": "warn", | ||
| "@typescript-eslint/no-unsafe-argument": "warn", | ||
|
|
||
| // ========================================== | ||
| // 접근성 (a11y) 관련 규칙 | ||
| // ========================================== | ||
|
|
||
| // label과 control 연결 규칙 비활성화 | ||
| "jsx-a11y/label-has-associated-control": "off", | ||
|
|
||
| // 클릭 이벤트에 키보드 이벤트 필요 (경고) | ||
| "jsx-a11y/click-events-have-key-events": "warn", | ||
|
|
||
| // 정적 요소에 이벤트 핸들러 (경고) | ||
| "jsx-a11y/no-static-element-interactions": "warn", | ||
| }, | ||
| settings: { | ||
| "import/parsers": { | ||
| "@typescript-eslint/parser": [".ts", ".tsx"], | ||
| }, | ||
| "import/resolver": { | ||
| typescript: { | ||
| alwaysTryTypes: true, | ||
| project: "./tsconfig.json", | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "pages": { | ||
| "/global-error": [ | ||
| "static/chunks/webpack.js", | ||
| "static/chunks/main-app.js", | ||
| "static/chunks/app/global-error.js" | ||
| ], | ||
| "/(home)/page": [ | ||
| "static/chunks/webpack.js", | ||
| "static/chunks/main-app.js", | ||
| "static/chunks/app/(home)/page.js" | ||
| ], | ||
| "/(home)/layout": [ | ||
| "static/chunks/webpack.js", | ||
| "static/chunks/main-app.js", | ||
| "static/chunks/app/(home)/layout.js" | ||
| ], | ||
| "/layout": [ | ||
| "static/chunks/webpack.js", | ||
| "static/chunks/main-app.js", | ||
| "static/css/styles.css", | ||
| "static/chunks/styles.js", | ||
| "static/chunks/app/layout.js" | ||
| ], | ||
| "/not-found": [ | ||
| "static/chunks/webpack.js", | ||
| "static/chunks/main-app.js", | ||
| "static/chunks/app/not-found.js" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "polyfillFiles": [ | ||
| "static/chunks/polyfills.js" | ||
| ], | ||
| "devFiles": [], | ||
| "ampDevFiles": [], | ||
| "lowPriorityFiles": [ | ||
| "static/development/_buildManifest.js", | ||
| "static/development/_ssgManifest.js" | ||
| ], | ||
| "rootMainFiles": [ | ||
| "static/chunks/webpack.js", | ||
| "static/chunks/main-app.js" | ||
| ], | ||
| "pages": { | ||
| "/_app": [] | ||
| }, | ||
| "ampFirstPages": [] | ||
| } |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"type": "commonjs"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: solid-connection/solid-connect-web
Length of output: 144
🏁 Script executed:
Repository: solid-connection/solid-connect-web
Length of output: 147
🌐 Web query:
husky commit-msg hook ${1} argument positional parameter shell quoting best practices💡 Result:
Short best-practices for using the commit-msg hook's positional parameter ($1) with Husky
Always source Husky's init first in the hook file.
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
Treat $1 as a filename — not the message text — and quote it.
Validate presence defensively.
When adding the hook via shell/echo/ npm scripts, escape the dollar or use single quotes so $1 is evaluated at runtime (hook), not when creating the file.
Use commitlint / other tools with --edit "$1" (or "${1}") so they read the temporary commit message file.
Windows caveat
References
1) 인자 경로는 따옴표로 감싸주세요.
$1에는 깃이 전달한 커밋 메시지 파일의 경로가 담깁니다. 따옴표 없이 사용하면 경로에 공백이 있을 때 명령이 깨질 수 있습니다.🔧 제안 수정
📝 Committable suggestion
🤖 Prompt for AI Agents