@kood/claude-code 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +118 -3
- package/package.json +1 -1
- package/templates/{tanstack-start/docs/git → hono/docs/commands}/git.md +34 -36
- package/templates/hono/docs/deployment/cloudflare.md +8 -18
- package/templates/hono/docs/deployment/docker.md +15 -18
- package/templates/hono/docs/deployment/index.md +0 -3
- package/templates/hono/docs/deployment/railway.md +6 -6
- package/templates/hono/docs/deployment/vercel.md +9 -14
- package/templates/hono/docs/library/hono/index.md +0 -3
- package/templates/{hono/docs/git → npx/docs/commands}/git.md +45 -55
- package/templates/{npx/docs/git → tanstack-start/docs/commands}/git.md +59 -91
- package/templates/tanstack-start/docs/deployment/cloudflare.md +13 -23
- package/templates/tanstack-start/docs/deployment/index.md +6 -6
- package/templates/tanstack-start/docs/deployment/nitro.md +10 -10
- package/templates/tanstack-start/docs/deployment/railway.md +9 -9
- package/templates/tanstack-start/docs/deployment/vercel.md +12 -17
- package/templates/tanstack-start/docs/library/prisma/index.md +0 -4
- package/templates/tanstack-start/docs/library/prisma/setup.md +0 -7
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Git 워크플로우
|
|
2
2
|
|
|
3
|
-
> Hono 서버 프레임워크 프로젝트 Git 컨벤션
|
|
4
|
-
|
|
5
3
|
---
|
|
6
4
|
|
|
7
5
|
## ⛔ NEVER (절대 금지)
|
|
@@ -38,11 +36,11 @@ git add .
|
|
|
38
36
|
git commit -m "feat: 여러 기능 추가"
|
|
39
37
|
|
|
40
38
|
# ✅ 올바른 방식: 논리적 단위로 분리
|
|
41
|
-
git add src/
|
|
42
|
-
git commit -m "feat: 사용자 인증
|
|
39
|
+
git add src/auth/
|
|
40
|
+
git commit -m "feat: 사용자 인증 기능 추가"
|
|
43
41
|
|
|
44
|
-
git add src/
|
|
45
|
-
git commit -m "feat: 사용자
|
|
42
|
+
git add src/users/
|
|
43
|
+
git commit -m "feat: 사용자 관리 기능 추가"
|
|
46
44
|
|
|
47
45
|
git add docs/
|
|
48
46
|
git commit -m "docs: API 문서 업데이트"
|
|
@@ -64,13 +62,13 @@ git commit -m "docs: API 문서 업데이트"
|
|
|
64
62
|
|
|
65
63
|
| Prefix | 용도 | 예시 |
|
|
66
64
|
|--------|------|------|
|
|
67
|
-
| `feat` | 새로운 기능 | `feat: 사용자 인증
|
|
68
|
-
| `fix` | 버그 수정 | `fix:
|
|
69
|
-
| `refactor` | 리팩토링 | `refactor: 인증
|
|
65
|
+
| `feat` | 새로운 기능 | `feat: 사용자 인증 기능 추가` |
|
|
66
|
+
| `fix` | 버그 수정 | `fix: 토큰 검증 오류 수정` |
|
|
67
|
+
| `refactor` | 리팩토링 | `refactor: 인증 로직 분리` |
|
|
70
68
|
| `style` | 코드 스타일 | `style: prettier 적용` |
|
|
71
69
|
| `docs` | 문서 수정 | `docs: API 문서 업데이트` |
|
|
72
|
-
| `test` | 테스트 | `test: 인증
|
|
73
|
-
| `chore` | 빌드/설정 | `chore:
|
|
70
|
+
| `test` | 테스트 | `test: 인증 테스트 추가` |
|
|
71
|
+
| `chore` | 빌드/설정 | `chore: 의존성 업데이트` |
|
|
74
72
|
| `perf` | 성능 개선 | `perf: 쿼리 최적화` |
|
|
75
73
|
| `ci` | CI/CD | `ci: GitHub Actions 추가` |
|
|
76
74
|
|
|
@@ -79,11 +77,11 @@ git commit -m "docs: API 문서 업데이트"
|
|
|
79
77
|
## ✅ 올바른 예시
|
|
80
78
|
|
|
81
79
|
```bash
|
|
82
|
-
feat: 사용자 로그인
|
|
80
|
+
feat: 사용자 로그인 기능 추가
|
|
83
81
|
fix: 세션 만료 오류 수정
|
|
84
|
-
refactor:
|
|
82
|
+
refactor: 서비스 클래스 구조 개선
|
|
85
83
|
docs: README 설치 가이드 추가
|
|
86
|
-
chore:
|
|
84
|
+
chore: 의존성 버전 업그레이드
|
|
87
85
|
```
|
|
88
86
|
|
|
89
87
|
---
|
|
@@ -116,11 +114,11 @@ Co-Authored-By: Claude <noreply@anthropic.com>
|
|
|
116
114
|
# 여러 줄 본문 (금지)
|
|
117
115
|
feat: 로그인 기능 추가
|
|
118
116
|
|
|
119
|
-
-
|
|
120
|
-
- 세션 관리
|
|
117
|
+
- 이메일 인증 추가
|
|
118
|
+
- 세션 관리 구현
|
|
121
119
|
|
|
122
120
|
# 여러 작업을 하나로 퉁침 (금지)
|
|
123
|
-
feat: 로그인, 회원가입,
|
|
121
|
+
feat: 로그인, 회원가입, 프로필 기능 추가
|
|
124
122
|
```
|
|
125
123
|
|
|
126
124
|
---
|
|
@@ -131,17 +129,17 @@ feat: 로그인, 회원가입, 사용자 API 추가
|
|
|
131
129
|
# 1. 작업 전 최신 코드 동기화
|
|
132
130
|
git pull origin main
|
|
133
131
|
|
|
134
|
-
# 2.
|
|
135
|
-
git add src/
|
|
136
|
-
git commit -m "feat:
|
|
132
|
+
# 2. 기능 A 작업 완료 → 커밋
|
|
133
|
+
git add src/feature-a/
|
|
134
|
+
git commit -m "feat: 기능 A 구현"
|
|
137
135
|
|
|
138
|
-
# 3.
|
|
139
|
-
git add src/
|
|
140
|
-
git commit -m "feat:
|
|
136
|
+
# 3. 기능 B 작업 완료 → 커밋
|
|
137
|
+
git add src/feature-b/
|
|
138
|
+
git commit -m "feat: 기능 B 구현"
|
|
141
139
|
|
|
142
140
|
# 4. 문서 작업 완료 → 커밋
|
|
143
141
|
git add docs/
|
|
144
|
-
git commit -m "docs:
|
|
142
|
+
git commit -m "docs: 기능 문서 추가"
|
|
145
143
|
|
|
146
144
|
# 5. 푸시
|
|
147
145
|
git push origin main
|
|
@@ -155,31 +153,31 @@ git push origin main
|
|
|
155
153
|
|
|
156
154
|
| 상황 | 커밋 분리 |
|
|
157
155
|
|------|----------|
|
|
158
|
-
| 서로 다른
|
|
156
|
+
| 서로 다른 기능 구현 | ✅ 분리 |
|
|
159
157
|
| 버그 수정 + 새 기능 | ✅ 분리 |
|
|
160
158
|
| 코드 변경 + 문서 변경 | ✅ 분리 |
|
|
161
159
|
| 리팩토링 + 기능 추가 | ✅ 분리 |
|
|
162
|
-
| 동일 기능의
|
|
163
|
-
| 동일 기능의
|
|
160
|
+
| 동일 기능의 관련 파일들 | 🔄 묶어도 됨 |
|
|
161
|
+
| 동일 기능의 타입 + 구현 | 🔄 묶어도 됨 |
|
|
164
162
|
|
|
165
|
-
### 예시: 사용자 관리
|
|
163
|
+
### 예시: 사용자 관리 기능 개발
|
|
166
164
|
|
|
167
165
|
```bash
|
|
168
|
-
# 1. 인증
|
|
169
|
-
git add src/
|
|
170
|
-
git commit -m "feat: 사용자 인증
|
|
166
|
+
# 1. 인증 기능 커밋
|
|
167
|
+
git add src/auth/
|
|
168
|
+
git commit -m "feat: 사용자 인증 기능 추가"
|
|
171
169
|
|
|
172
|
-
# 2. 사용자
|
|
173
|
-
git add src/
|
|
174
|
-
git commit -m "feat: 사용자 CRUD
|
|
170
|
+
# 2. 사용자 관리 커밋
|
|
171
|
+
git add src/users/
|
|
172
|
+
git commit -m "feat: 사용자 CRUD 기능 추가"
|
|
175
173
|
|
|
176
|
-
# 3.
|
|
177
|
-
git add src/
|
|
178
|
-
git commit -m "feat:
|
|
174
|
+
# 3. 유효성 검사 커밋
|
|
175
|
+
git add src/validators/
|
|
176
|
+
git commit -m "feat: 입력값 유효성 검사 추가"
|
|
179
177
|
|
|
180
178
|
# 4. 테스트 커밋
|
|
181
179
|
git add tests/
|
|
182
|
-
git commit -m "test: 사용자
|
|
180
|
+
git commit -m "test: 사용자 관리 테스트 추가"
|
|
183
181
|
|
|
184
182
|
# 5. 문서 커밋
|
|
185
183
|
git add docs/
|
|
@@ -205,9 +203,9 @@ main
|
|
|
205
203
|
|
|
206
204
|
### 브랜치 명명
|
|
207
205
|
```bash
|
|
208
|
-
feature/user-
|
|
209
|
-
feature/payment-
|
|
210
|
-
fix/
|
|
206
|
+
feature/user-authentication
|
|
207
|
+
feature/payment-integration
|
|
208
|
+
fix/session-error
|
|
211
209
|
hotfix/security-patch
|
|
212
210
|
```
|
|
213
211
|
|
|
@@ -253,11 +251,12 @@ node_modules/
|
|
|
253
251
|
# Build
|
|
254
252
|
dist/
|
|
255
253
|
.output/
|
|
254
|
+
build/
|
|
256
255
|
|
|
257
256
|
# Environment
|
|
258
257
|
.env
|
|
259
258
|
.env.local
|
|
260
|
-
.
|
|
259
|
+
.env.*.local
|
|
261
260
|
|
|
262
261
|
# IDE
|
|
263
262
|
.idea/
|
|
@@ -267,19 +266,10 @@ dist/
|
|
|
267
266
|
# OS
|
|
268
267
|
.DS_Store
|
|
269
268
|
|
|
270
|
-
# Prisma
|
|
271
|
-
prisma/generated/
|
|
272
|
-
|
|
273
|
-
# Wrangler
|
|
274
|
-
.wrangler/
|
|
275
|
-
|
|
276
269
|
# Cache
|
|
277
270
|
.cache/
|
|
278
|
-
|
|
271
|
+
.turbo/
|
|
279
272
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
- [CLAUDE.md](../../CLAUDE.md)
|
|
285
|
-
- [아키텍처](../architecture/architecture.md)
|
|
273
|
+
# Logs
|
|
274
|
+
*.log
|
|
275
|
+
```
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Git 워크플로우
|
|
2
2
|
|
|
3
|
-
> NPX CLI 프로젝트 Git 컨벤션
|
|
4
|
-
|
|
5
3
|
---
|
|
6
4
|
|
|
7
5
|
## ⛔ NEVER (절대 금지)
|
|
@@ -38,14 +36,14 @@ git add .
|
|
|
38
36
|
git commit -m "feat: 여러 기능 추가"
|
|
39
37
|
|
|
40
38
|
# ✅ 올바른 방식: 논리적 단위로 분리
|
|
41
|
-
git add src/
|
|
42
|
-
git commit -m "feat:
|
|
39
|
+
git add src/auth/
|
|
40
|
+
git commit -m "feat: 사용자 인증 기능 추가"
|
|
43
41
|
|
|
44
|
-
git add src/
|
|
45
|
-
git commit -m "feat:
|
|
42
|
+
git add src/users/
|
|
43
|
+
git commit -m "feat: 사용자 관리 기능 추가"
|
|
46
44
|
|
|
47
45
|
git add docs/
|
|
48
|
-
git commit -m "docs:
|
|
46
|
+
git commit -m "docs: API 문서 업데이트"
|
|
49
47
|
```
|
|
50
48
|
|
|
51
49
|
---
|
|
@@ -64,14 +62,14 @@ git commit -m "docs: CLI 사용법 문서 추가"
|
|
|
64
62
|
|
|
65
63
|
| Prefix | 용도 | 예시 |
|
|
66
64
|
|--------|------|------|
|
|
67
|
-
| `feat` | 새로운 기능 | `feat:
|
|
68
|
-
| `fix` | 버그 수정 | `fix:
|
|
69
|
-
| `refactor` | 리팩토링 | `refactor:
|
|
65
|
+
| `feat` | 새로운 기능 | `feat: 사용자 인증 기능 추가` |
|
|
66
|
+
| `fix` | 버그 수정 | `fix: 토큰 검증 오류 수정` |
|
|
67
|
+
| `refactor` | 리팩토링 | `refactor: 인증 로직 분리` |
|
|
70
68
|
| `style` | 코드 스타일 | `style: prettier 적용` |
|
|
71
|
-
| `docs` | 문서 수정 | `docs:
|
|
72
|
-
| `test` | 테스트 | `test:
|
|
73
|
-
| `chore` | 빌드/설정 | `chore:
|
|
74
|
-
| `perf` | 성능 개선 | `perf:
|
|
69
|
+
| `docs` | 문서 수정 | `docs: API 문서 업데이트` |
|
|
70
|
+
| `test` | 테스트 | `test: 인증 테스트 추가` |
|
|
71
|
+
| `chore` | 빌드/설정 | `chore: 의존성 업데이트` |
|
|
72
|
+
| `perf` | 성능 개선 | `perf: 쿼리 최적화` |
|
|
75
73
|
| `ci` | CI/CD | `ci: GitHub Actions 추가` |
|
|
76
74
|
|
|
77
75
|
---
|
|
@@ -79,11 +77,11 @@ git commit -m "docs: CLI 사용법 문서 추가"
|
|
|
79
77
|
## ✅ 올바른 예시
|
|
80
78
|
|
|
81
79
|
```bash
|
|
82
|
-
feat:
|
|
83
|
-
fix:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
chore: 의존성
|
|
80
|
+
feat: 사용자 로그인 기능 추가
|
|
81
|
+
fix: 세션 만료 오류 수정
|
|
82
|
+
refactor: 서비스 클래스 구조 개선
|
|
83
|
+
docs: README 설치 가이드 추가
|
|
84
|
+
chore: 의존성 버전 업그레이드
|
|
87
85
|
```
|
|
88
86
|
|
|
89
87
|
---
|
|
@@ -92,35 +90,35 @@ chore: 의존성 업데이트
|
|
|
92
90
|
|
|
93
91
|
```bash
|
|
94
92
|
# prefix 없음
|
|
95
|
-
|
|
93
|
+
사용자 인증 기능 추가함
|
|
96
94
|
|
|
97
95
|
# 마침표 불필요
|
|
98
|
-
feat:
|
|
96
|
+
feat: 사용자 인증 추가.
|
|
99
97
|
|
|
100
98
|
# 대문자 사용
|
|
101
|
-
FEAT:
|
|
99
|
+
FEAT: 사용자 인증 추가
|
|
102
100
|
|
|
103
101
|
# scope 불필요
|
|
104
|
-
feat(
|
|
102
|
+
feat(auth): 인증 추가
|
|
105
103
|
|
|
106
104
|
# AI 작성 표시 (절대 금지!)
|
|
107
|
-
feat: 기능 추가
|
|
105
|
+
feat: 로그인 기능 추가
|
|
108
106
|
|
|
109
107
|
🤖 Generated with Claude Code
|
|
110
108
|
|
|
111
109
|
# Co-Author 표시 (절대 금지!)
|
|
112
|
-
feat: 기능 추가
|
|
110
|
+
feat: 로그인 기능 추가
|
|
113
111
|
|
|
114
112
|
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
115
113
|
|
|
116
114
|
# 여러 줄 본문 (금지)
|
|
117
|
-
feat:
|
|
115
|
+
feat: 로그인 기능 추가
|
|
118
116
|
|
|
119
|
-
-
|
|
120
|
-
-
|
|
117
|
+
- 이메일 인증 추가
|
|
118
|
+
- 세션 관리 구현
|
|
121
119
|
|
|
122
120
|
# 여러 작업을 하나로 퉁침 (금지)
|
|
123
|
-
feat:
|
|
121
|
+
feat: 로그인, 회원가입, 프로필 기능 추가
|
|
124
122
|
```
|
|
125
123
|
|
|
126
124
|
---
|
|
@@ -131,17 +129,17 @@ feat: init, list, copy 명령어 추가
|
|
|
131
129
|
# 1. 작업 전 최신 코드 동기화
|
|
132
130
|
git pull origin main
|
|
133
131
|
|
|
134
|
-
# 2.
|
|
135
|
-
git add src/
|
|
136
|
-
git commit -m "feat:
|
|
132
|
+
# 2. 기능 A 작업 완료 → 커밋
|
|
133
|
+
git add src/feature-a/
|
|
134
|
+
git commit -m "feat: 기능 A 구현"
|
|
137
135
|
|
|
138
|
-
# 3.
|
|
139
|
-
git add src/
|
|
140
|
-
git commit -m "feat:
|
|
136
|
+
# 3. 기능 B 작업 완료 → 커밋
|
|
137
|
+
git add src/feature-b/
|
|
138
|
+
git commit -m "feat: 기능 B 구현"
|
|
141
139
|
|
|
142
140
|
# 4. 문서 작업 완료 → 커밋
|
|
143
141
|
git add docs/
|
|
144
|
-
git commit -m "docs:
|
|
142
|
+
git commit -m "docs: 기능 문서 추가"
|
|
145
143
|
|
|
146
144
|
# 5. 푸시
|
|
147
145
|
git push origin main
|
|
@@ -155,35 +153,35 @@ git push origin main
|
|
|
155
153
|
|
|
156
154
|
| 상황 | 커밋 분리 |
|
|
157
155
|
|------|----------|
|
|
158
|
-
| 서로 다른
|
|
156
|
+
| 서로 다른 기능 구현 | ✅ 분리 |
|
|
159
157
|
| 버그 수정 + 새 기능 | ✅ 분리 |
|
|
160
158
|
| 코드 변경 + 문서 변경 | ✅ 분리 |
|
|
161
159
|
| 리팩토링 + 기능 추가 | ✅ 분리 |
|
|
162
|
-
| 동일
|
|
160
|
+
| 동일 기능의 관련 파일들 | 🔄 묶어도 됨 |
|
|
163
161
|
| 동일 기능의 타입 + 구현 | 🔄 묶어도 됨 |
|
|
164
162
|
|
|
165
|
-
### 예시:
|
|
163
|
+
### 예시: 사용자 관리 기능 개발
|
|
166
164
|
|
|
167
165
|
```bash
|
|
168
|
-
# 1.
|
|
169
|
-
git add src/
|
|
170
|
-
git commit -m "feat:
|
|
166
|
+
# 1. 인증 기능 커밋
|
|
167
|
+
git add src/auth/
|
|
168
|
+
git commit -m "feat: 사용자 인증 기능 추가"
|
|
171
169
|
|
|
172
|
-
# 2.
|
|
173
|
-
git add src/
|
|
174
|
-
git commit -m "feat:
|
|
170
|
+
# 2. 사용자 관리 커밋
|
|
171
|
+
git add src/users/
|
|
172
|
+
git commit -m "feat: 사용자 CRUD 기능 추가"
|
|
175
173
|
|
|
176
|
-
# 3.
|
|
177
|
-
git add src/
|
|
178
|
-
git commit -m "feat:
|
|
174
|
+
# 3. 유효성 검사 커밋
|
|
175
|
+
git add src/validators/
|
|
176
|
+
git commit -m "feat: 입력값 유효성 검사 추가"
|
|
179
177
|
|
|
180
178
|
# 4. 테스트 커밋
|
|
181
179
|
git add tests/
|
|
182
|
-
git commit -m "test:
|
|
180
|
+
git commit -m "test: 사용자 관리 테스트 추가"
|
|
183
181
|
|
|
184
182
|
# 5. 문서 커밋
|
|
185
|
-
git add docs/
|
|
186
|
-
git commit -m "docs:
|
|
183
|
+
git add docs/
|
|
184
|
+
git commit -m "docs: 사용자 API 문서 추가"
|
|
187
185
|
```
|
|
188
186
|
|
|
189
187
|
---
|
|
@@ -205,9 +203,9 @@ main
|
|
|
205
203
|
|
|
206
204
|
### 브랜치 명명
|
|
207
205
|
```bash
|
|
208
|
-
feature/
|
|
209
|
-
feature/
|
|
210
|
-
fix/
|
|
206
|
+
feature/user-authentication
|
|
207
|
+
feature/payment-integration
|
|
208
|
+
fix/session-error
|
|
211
209
|
hotfix/security-patch
|
|
212
210
|
```
|
|
213
211
|
|
|
@@ -244,32 +242,6 @@ git add -p
|
|
|
244
242
|
|
|
245
243
|
---
|
|
246
244
|
|
|
247
|
-
## 🏷 버전 관리
|
|
248
|
-
|
|
249
|
-
### 버전 업데이트
|
|
250
|
-
|
|
251
|
-
```bash
|
|
252
|
-
# 패치 버전 (0.1.0 → 0.1.1)
|
|
253
|
-
npm version patch
|
|
254
|
-
|
|
255
|
-
# 마이너 버전 (0.1.0 → 0.2.0)
|
|
256
|
-
npm version minor
|
|
257
|
-
|
|
258
|
-
# 메이저 버전 (0.1.0 → 1.0.0)
|
|
259
|
-
npm version major
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
### 배포 전 체크리스트
|
|
263
|
-
|
|
264
|
-
```
|
|
265
|
-
□ 버전 업데이트 완료
|
|
266
|
-
□ CHANGELOG 작성 완료
|
|
267
|
-
□ 테스트 통과 확인
|
|
268
|
-
□ 빌드 성공 확인
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
---
|
|
272
|
-
|
|
273
245
|
## 📚 .gitignore
|
|
274
246
|
|
|
275
247
|
```gitignore
|
|
@@ -278,11 +250,13 @@ node_modules/
|
|
|
278
250
|
|
|
279
251
|
# Build
|
|
280
252
|
dist/
|
|
281
|
-
|
|
253
|
+
.output/
|
|
254
|
+
build/
|
|
282
255
|
|
|
283
256
|
# Environment
|
|
284
257
|
.env
|
|
285
258
|
.env.local
|
|
259
|
+
.env.*.local
|
|
286
260
|
|
|
287
261
|
# IDE
|
|
288
262
|
.idea/
|
|
@@ -292,16 +266,10 @@ lib/
|
|
|
292
266
|
# OS
|
|
293
267
|
.DS_Store
|
|
294
268
|
|
|
295
|
-
# Logs
|
|
296
|
-
*.log
|
|
297
|
-
npm-debug.log*
|
|
298
|
-
|
|
299
269
|
# Cache
|
|
300
270
|
.cache/
|
|
301
|
-
|
|
271
|
+
.turbo/
|
|
302
272
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
- [CLAUDE.md](../../CLAUDE.md)
|
|
273
|
+
# Logs
|
|
274
|
+
*.log
|
|
275
|
+
```
|
|
@@ -39,7 +39,7 @@ export default defineConfig({
|
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
|
|
42
|
+
yarn build && wrangler deploy
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
---
|
|
@@ -60,7 +60,7 @@ TanStack Start 공식 권장 방식입니다.
|
|
|
60
60
|
### 1. 패키지 설치
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
|
|
63
|
+
yarn add -D @cloudflare/vite-plugin wrangler
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
### 2. Vite 설정
|
|
@@ -98,13 +98,13 @@ export default defineConfig({
|
|
|
98
98
|
|
|
99
99
|
```bash
|
|
100
100
|
# 빌드
|
|
101
|
-
|
|
101
|
+
yarn build
|
|
102
102
|
|
|
103
103
|
# 배포
|
|
104
104
|
wrangler deploy
|
|
105
105
|
|
|
106
106
|
# 또는 한번에
|
|
107
|
-
|
|
107
|
+
yarn build && wrangler deploy
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
---
|
|
@@ -116,7 +116,7 @@ Nitro 배포 레이어를 사용하는 방식입니다.
|
|
|
116
116
|
### 1. Nitro 설치
|
|
117
117
|
|
|
118
118
|
```bash
|
|
119
|
-
|
|
119
|
+
yarn add nitro@3
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
### 2. Vite 설정
|
|
@@ -160,7 +160,7 @@ export default defineNitroConfig({
|
|
|
160
160
|
|
|
161
161
|
```bash
|
|
162
162
|
# 빌드
|
|
163
|
-
|
|
163
|
+
yarn build
|
|
164
164
|
|
|
165
165
|
# Pages 배포
|
|
166
166
|
wrangler pages deploy .output/public
|
|
@@ -439,22 +439,17 @@ jobs:
|
|
|
439
439
|
steps:
|
|
440
440
|
- uses: actions/checkout@v4
|
|
441
441
|
|
|
442
|
-
- name: Setup pnpm
|
|
443
|
-
uses: pnpm/action-setup@v2
|
|
444
|
-
with:
|
|
445
|
-
version: 8
|
|
446
|
-
|
|
447
442
|
- name: Setup Node.js
|
|
448
443
|
uses: actions/setup-node@v4
|
|
449
444
|
with:
|
|
450
445
|
node-version: '20'
|
|
451
|
-
cache: '
|
|
446
|
+
cache: 'yarn'
|
|
452
447
|
|
|
453
448
|
- name: Install dependencies
|
|
454
|
-
run:
|
|
449
|
+
run: yarn install --frozen-lockfile
|
|
455
450
|
|
|
456
451
|
- name: Build
|
|
457
|
-
run:
|
|
452
|
+
run: yarn build
|
|
458
453
|
|
|
459
454
|
- name: Deploy to Workers
|
|
460
455
|
uses: cloudflare/wrangler-action@v3
|
|
@@ -478,22 +473,17 @@ jobs:
|
|
|
478
473
|
steps:
|
|
479
474
|
- uses: actions/checkout@v4
|
|
480
475
|
|
|
481
|
-
- name: Setup pnpm
|
|
482
|
-
uses: pnpm/action-setup@v2
|
|
483
|
-
with:
|
|
484
|
-
version: 8
|
|
485
|
-
|
|
486
476
|
- name: Setup Node.js
|
|
487
477
|
uses: actions/setup-node@v4
|
|
488
478
|
with:
|
|
489
479
|
node-version: '20'
|
|
490
|
-
cache: '
|
|
480
|
+
cache: 'yarn'
|
|
491
481
|
|
|
492
482
|
- name: Install dependencies
|
|
493
|
-
run:
|
|
483
|
+
run: yarn install --frozen-lockfile
|
|
494
484
|
|
|
495
485
|
- name: Build
|
|
496
|
-
run:
|
|
486
|
+
run: yarn build
|
|
497
487
|
|
|
498
488
|
- name: Deploy to Pages
|
|
499
489
|
uses: cloudflare/wrangler-action@v3
|
|
@@ -512,7 +502,7 @@ jobs:
|
|
|
512
502
|
"dev": "vite dev",
|
|
513
503
|
"build": "vite build && tsc --noEmit",
|
|
514
504
|
"preview": "vite preview",
|
|
515
|
-
"deploy": "
|
|
505
|
+
"deploy": "yarn build && wrangler deploy"
|
|
516
506
|
}
|
|
517
507
|
}
|
|
518
508
|
```
|
|
@@ -50,7 +50,7 @@ Cloudflare Workers 배포 시 공식 권장 방식입니다.
|
|
|
50
50
|
### 1. 패키지 설치
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
|
|
53
|
+
yarn add -D @cloudflare/vite-plugin wrangler
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### 2. Vite 설정
|
|
@@ -88,7 +88,7 @@ export default defineConfig({
|
|
|
88
88
|
|
|
89
89
|
```bash
|
|
90
90
|
# 빌드 및 배포
|
|
91
|
-
|
|
91
|
+
yarn build && wrangler deploy
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
---
|
|
@@ -100,7 +100,7 @@ pnpm build && wrangler deploy
|
|
|
100
100
|
### 1. Nitro 설치
|
|
101
101
|
|
|
102
102
|
```bash
|
|
103
|
-
|
|
103
|
+
yarn add nitro@3
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
### 2. Vite 설정
|
|
@@ -140,10 +140,10 @@ export default defineNitroConfig({
|
|
|
140
140
|
|
|
141
141
|
```bash
|
|
142
142
|
# 빌드
|
|
143
|
-
|
|
143
|
+
yarn build
|
|
144
144
|
|
|
145
145
|
# 또는 환경변수로 preset 지정
|
|
146
|
-
NITRO_PRESET=vercel
|
|
146
|
+
NITRO_PRESET=vercel yarn build
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
---
|
|
@@ -195,7 +195,7 @@ export default defineConfig({
|
|
|
195
195
|
"build": "vite build && tsc --noEmit",
|
|
196
196
|
"start": "node .output/server/index.mjs",
|
|
197
197
|
"preview": "vite preview",
|
|
198
|
-
"deploy": "
|
|
198
|
+
"deploy": "yarn build && wrangler deploy"
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
```
|
|
@@ -21,8 +21,8 @@ export default defineNitroConfig({
|
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
# 설치 및 빌드
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
yarn add nitro@3
|
|
25
|
+
yarn build
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
---
|
|
@@ -30,8 +30,8 @@ pnpm build
|
|
|
30
30
|
## 설치
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
#
|
|
34
|
-
|
|
33
|
+
# yarn
|
|
34
|
+
yarn add nitro@3
|
|
35
35
|
|
|
36
36
|
# npm
|
|
37
37
|
npm install nitro@3
|
|
@@ -124,7 +124,7 @@ export default defineNitroConfig({
|
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
126
|
# 빌드 시 환경변수로 지정
|
|
127
|
-
NITRO_PRESET=cloudflare_pages
|
|
127
|
+
NITRO_PRESET=cloudflare_pages yarn build
|
|
128
128
|
|
|
129
129
|
# 또는 CLI 옵션
|
|
130
130
|
nitro build --preset cloudflare_pages
|
|
@@ -352,16 +352,16 @@ export default defineHandler(() => {
|
|
|
352
352
|
|
|
353
353
|
```bash
|
|
354
354
|
# 개발 서버
|
|
355
|
-
|
|
355
|
+
yarn dev
|
|
356
356
|
|
|
357
357
|
# 프로덕션 빌드
|
|
358
|
-
|
|
358
|
+
yarn build
|
|
359
359
|
|
|
360
360
|
# 빌드 결과 미리보기
|
|
361
|
-
|
|
361
|
+
yarn preview
|
|
362
362
|
|
|
363
363
|
# 특정 preset으로 빌드
|
|
364
|
-
NITRO_PRESET=vercel
|
|
364
|
+
NITRO_PRESET=vercel yarn build
|
|
365
365
|
```
|
|
366
366
|
|
|
367
367
|
---
|
|
@@ -372,7 +372,7 @@ NITRO_PRESET=vercel pnpm build
|
|
|
372
372
|
|
|
373
373
|
```bash
|
|
374
374
|
# 상세 로그 출력
|
|
375
|
-
DEBUG=nitro:*
|
|
375
|
+
DEBUG=nitro:* yarn build
|
|
376
376
|
```
|
|
377
377
|
|
|
378
378
|
### 출력 검사
|