Merged
Conversation
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: Cursor <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🔍 관련 이슈 (Related Issues)
📝 변경 사항 요약 (Summary)
FSD 폴더구조 설정하고 코드오너 변경했습니다 .
🎯 작업 내용 상세 (Details)
src/
├── app/ # 애플리케이션 초기화 및 전역 설정
├── pages/ # 라우팅 단위의 페이지 컴포넌트
├── widgets/ # 독립적인 UI 블록
├── features/ # 사용자 행동 단위의 기능
├── entities/ # 비즈니스 도메인 엔티티
└── shared/ # 전역 공유 리소스
├── ui/ # 공통 UI 컴포넌트
├── lib/ # 유틸리티, 커스텀 훅
├── api/ # API 인스턴스 및 설정
└── config/ # 공통 설정
위와 같은 구조로 설정했고
app
↓
pages
↓
widgets
↓
features
↓
entities
↓
shared
이러한 의존성 규칙을 가져서 상위 레이어는 하위 레이어를 import할 수 있으나 , 하위 레이어는 상위 레이어를 import할 수 없습니다.
📦 Layer Overview (FSD)
1.
app/– 애플리케이션 레이어예시
App.tsxproviders.tsxrouter.tsx2.
pages/– 페이지 레이어예시
HomePage/ProductPage/MyPage/3.
widgets/– 위젯 레이어예시
Header/Sidebar/ProductCard/UserProfile/4.
features/– 기능 레이어예시
auth/product-search/add-to-cart/like-product/5.
entities/– 엔티티 레이어예시
user/product/order/category/6.
shared/– 공유 레이어구성
ui/: 공통 UI 컴포넌트 (Button, Input 등)lib/: 유틸 함수, 커스텀 훅, 상수api/: API 인스턴스, 인터셉터config/: 환경 설정, 공통 설정 값💬 리뷰어 참고사항 (Notes for Reviewers)
🔗 참고 자료
구조에대해서 더 공부할 필요가 있을 건데 위 자료 확인해보시면 될 것같아요