Repository navigation
chore: pnpm·Turborepo 모노레포 전환과 Expo 웹뷰 앱 추가 - #4
Merged
Merged
Conversation
앱 껍데기(Expo) 구조, 웹뷰에서 주의할 점, 웹↔RN 브릿지, 딥링크(유니버설 링크·앱 링크) 처리 방식과 미리 정할 항목을 정리했다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 웹 프로젝트를 apps/web(@morak/web)으로 이동 - 루트에 pnpm 워크스페이스, Turborepo, 공통 도구(husky·commitlint·prettier) 설정 - 웹↔앱 브릿지 메시지 타입을 packages/bridge(@morak/bridge)로 분리하고 웹에 브릿지 헬퍼와 READY·OPEN_URL 처리 리스너 추가 - CI를 pnpm·turbo 기준으로 변경 (필수 체크 이름은 유지) - README와 웹뷰 가이드를 모노레포 구조에 맞게 수정 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Expo SDK 58 앱(apps/app, @morak/app)에서 웹을 WebView로 표시 - 웹 READY 수신 시 스플래시 숨김, APP_INFO 전달 - 외부 링크는 시스템 브라우저로, 안드로이드 뒤로가기는 웹 기록으로 연결 - 우리 출처의 메시지만 처리하고 오프라인 시 재시도 화면 표시 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
관련 이슈
작업 내용
한 레포에서 웹과 앱 껍데기를 함께 관리하도록 pnpm 워크스페이스 + Turborepo 모노레포로 전환했습니다. (JECT-Study/Billit-5th-Client 구조 참고)
모노레포
packageManager고정), Turborepo로lint·typecheck·build실행pnpm-workspace.yaml에@hookform/resolvers옵셔널 피어 zod 버전 override, esbuild·unrs-resolver 설치 스크립트 허용브릿지
@morak/bridge:WebToApp/AppToWeb타입,BRIDGE_VERSION, 메시지 검증(parseWebToApp/parseAppToWeb), 주입 코드 생성(toInjectedScript)src/shared/native:isApp,sendToApp,onAppMessage+ 화면 준비 시READY전송,OPEN_URL수신 시 라우터 이동앱 껍데기 (시제품)
EXPO_PUBLIC_WEB_URL의 웹을 WebView로 표시,READY수신 시 스플래시 숨김react-native-webview타입이 최신 TS에서 props를never로 계산하는 문제가 있어 타입만 감싸서 사용CI
Lint · Typecheck · Build,Commit message)은 그대로라 브랜치 보호 규칙 수정은 필요 없습니다.확인 사항
pnpm format:check/lint/typecheck(web·app·bridge) /build로컬 통과expo-doctor20/20 통과expo export --platform android로 워크스페이스 패키지 포함 번들링 확인머지 후 할 일
apps/web으로 지정corepack enable후pnpm install🤖 Generated with Claude Code