Conversation
- build:mock 스크립트 추가 - useCourseData, useGetCourse에서 VITE_MOCK 환경변수로 mock 데이터 분기 - mock 데이터 파일 추가 (src/mocks/mockData.ts) - .gitignore에 *.md 무시 및 README.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
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.
Summary
npm run build:mock으로 mock 데이터 기반 빌드 지원.gitignore에*.md무시 및README.md예외 처리Changes
package.json:build:mock스크립트 추가vite.config.ts: mock 빌드 시 crx 플러그인 포함되도록 주석 수정useCourseData.tsx:VITE_MOCK환경변수로 mock 데이터 분기useGetCourse.ts:VITE_MOCK환경변수로 mock 강의 목록 분기src/mocks/mockData.ts: mock 데이터 파일 추가.gitignore:*.md무시,README.md예외Test plan
npm run build:mock이 정상 빌드되는지 확인npm run build(일반 빌드)에는 영향 없는지 확인