-
Notifications
You must be signed in to change notification settings - Fork 50
[1팀 강승훈] Chapter2-1. 프레임워크 없이 SPA 만들기 #42
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
base: main
Are you sure you want to change the base?
Changes from all commits
9f044d3
d8a9676
f5c4eea
925f58b
c407fa7
f9ee80a
7f7367a
17d3d26
1ad98b1
e207911
a3c2c76
2c4b6a2
08da962
d7fbdad
57d80fd
3b3cc49
18bf3c6
f1a23d5
6d3c0dd
1fb441e
9a12cad
ab9a740
d1c11f8
690d003
98409a0
bd28f0b
11f2abc
75ccb5d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| name: Deploy to GitHub Pages | ||
|
|
||
| on: | ||
| push: # push trigger | ||
| branches: | ||
| - main | ||
| - feature-* # Feature 브랜치도 배포 | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v2 | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
| cache: "pnpm" | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build | ||
| run: pnpm run build | ||
|
|
||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v4 | ||
|
|
||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: "./dist" | ||
|
|
||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
|
|
||
| - name: Output deployment URL | ||
| run: | | ||
| REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2) | ||
| OWNER=$(echo ${{ github.repository }} | cut -d'/' -f1) | ||
|
|
||
| echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | ||
| echo "🚀 GitHub Pages Deployment Complete" | ||
| echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | ||
| echo "✅ Status: Success" | ||
| echo "📄 Live URL: https://${OWNER}.github.io/${REPO_NAME}/" | ||
| echo "📌 Repository: ${{ github.repository }}" | ||
| echo "📝 Branch: ${{ github.ref_name }}" | ||
| echo "🔗 Commit: ${{ github.sha }}" | ||
| echo "👤 Author: ${{ github.actor }}" | ||
| echo "⏰ Time: $(date)" | ||
| echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,6 @@ | |
| "tabWidth": 2, | ||
| "semi": true, | ||
| "singleQuote": false, | ||
| "printWidth": 120 | ||
| "printWidth": 120, | ||
| "trailingComma": "all" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
| "private": true, | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "packageManager": "[email protected]", | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "dev:hash": "vite --open ./index.hash.html", | ||
|
|
@@ -40,7 +41,6 @@ | |
| "jsdom": "^25.0.1", | ||
| "lint-staged": "^15.2.11", | ||
| "msw": "^2.10.2", | ||
| "prettier": "^3.4.2", | ||
| "vite": "npm:rolldown-vite@latest", | ||
| "vitest": "latest" | ||
| }, | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,11 @@ | |
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 문제 상황요구사항 문서에도 현재 코드의 한계
근본 원인마찬가지로 문서 편집 도중 merge conflict를 해결하지 않고 커밋해서 충돌 마커가 남아 있습니다. 개선 구조
-<<<<<<< HEAD
- - 상품을 가격순/이름순으로 오름차순/내림차순 정렬을 할 수 있다.
-=======
-- 상품을 가격순/인기순으로 오름차순/내림차순 정렬을 할 수 있다.
->>>>>>> caecb93 (feat: 기본 코드 추가)
+- 상품을 가격순/인기순으로 오름차순/내림차순 정렬을 할 수 있다.
|
||
| ### 상품 정렬 기능 | ||
|
|
||
| <<<<<<< HEAD | ||
| - 상품을 가격순/이름순으로 오름차순/내림차순 정렬을 할 수 있다. | ||
| ======= | ||
| - 상품을 가격순/인기순으로 오름차순/내림차순 정렬을 할 수 있다. | ||
| >>>>>>> caecb93 (feat: 기본 코드 추가) | ||
| - 드롭다운을 통해 정렬 기준을 선택할 수 있다 | ||
| - 정렬 변경 시 즉시 목록에 반영된다 | ||
|
|
||
|
|
||
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.
문제 상황
상품 정렬 기능항목에<<<<<<< HEAD/=======/>>>>>>>충돌 마커가 그대로 남아 있어서 GitHub에서 자동으로 PR 템플릿을 렌더링할 때 두 가지 중복된 체크리스트 항목이 동시에 노출됩니다. 이 상태로는 어떤 조건으로 체크해야 하는지 명확하지 않습니다.현재 코드의 한계
HEAD영역과caecb93영역을 비교해서 어떤 체크박스를 써야 하는지 매번 판단해야 합니다.근본 원인
PR 템플릿을 수정하면서 충돌을 완전히 해소하지 않고 커밋해서 충돌 마커가 리포지토리에 남아 있었습니다.
개선 구조
git diff --check로 확인해서 충돌 마커가 없는지를 검증하는 훅을 둘 수 있습니다.