Skip to content

Commit 1724afa

Browse files
authored
Merge branch 'main' into fix/vercel-link
2 parents 09f7bcf + 8851d55 commit 1724afa

17 files changed

Lines changed: 12035 additions & 17099 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v3
2929

30+
- name: Install pnpm
31+
uses: pnpm/action-setup@v3
32+
with:
33+
version: 9
34+
3035
- name: Install Vercel CLI
31-
run: npm install --global vercel@latest
36+
run: pnpm add --global vercel@latest
3237

3338
- name: Link Vercel Project
3439
run: vercel link --yes --project=${{ secrets.VERCEL_PROJECT_ID }} --token=${{ secrets.VERCEL_TOKEN }}

.github/workflows/ci.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,22 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616

17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v3
19+
with:
20+
version: 9
21+
1722
- name: Setup Node.js
1823
uses: actions/setup-node@v4
1924
with:
2025
node-version: "22.x"
21-
cache: "npm"
26+
cache: "pnpm"
2227

2328
- name: Install dependencies
24-
run: npm ci
29+
run: pnpm install --frozen-lockfile
2530

2631
- name: Run ESLint (includes Prettier) & TypeScript
27-
run: npm run ci:check
32+
run: pnpm run ci:check
2833

2934
build:
3035
name: Build Verification
@@ -34,16 +39,21 @@ jobs:
3439
- name: Checkout repository
3540
uses: actions/checkout@v4
3641

42+
- name: Install pnpm
43+
uses: pnpm/action-setup@v3
44+
with:
45+
version: 9
46+
3747
- name: Setup Node.js
3848
uses: actions/setup-node@v4
3949
with:
4050
node-version: "22.x"
41-
cache: "npm"
51+
cache: "pnpm"
4252

4353
- name: Install dependencies
44-
run: npm ci
54+
run: pnpm install --frozen-lockfile
4555

4656
- name: Build Next.js application
47-
run: npm run build
57+
run: pnpm run build
4858
env:
4959
NODE_ENV: production

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ jobs:
4242
steps:
4343
- uses: actions/checkout@v3
4444

45+
- name: Install pnpm
46+
uses: pnpm/action-setup@v3
47+
with:
48+
version: 9
49+
4550
- name: Install Vercel CLI
46-
run: npm install --global vercel@latest
51+
run: pnpm add --global vercel@latest
4752

4853
- name: Link Vercel Project
4954
run: vercel link --yes --project=${{ secrets.VERCEL_PROJECT_ID }} --token=${{ secrets.VERCEL_TOKEN }}

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
npx --no -- commitlint --edit ${1}
1+
pnpm dlx commitlint --edit ${1}
22

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
echo "🔍 Running type check before push..."
2-
npm run typecheck
2+
pnpm run typecheck
33

44
echo "✅ All checks passed!"

.npmrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Next.js 호환성을 위한 설정
2+
shamefully-hoist=true
3+
auto-install-peers=true
4+
strict-peer-dependencies=false
5+
6+
# 기본 설정
7+
registry=https://registry.npmjs.org/
8+
enable-pre-post-scripts=true
9+
lockfile=true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

README.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,47 @@
99
- Prettier
1010
- Vercel
1111

12+
## Prerequisites
13+
14+
- Node.js 22.x
15+
- pnpm 9.x or later
16+
17+
## Installation
18+
19+
This project uses pnpm as the package manager.
20+
21+
```bash
22+
# Install pnpm globally
23+
npm install -g pnpm
24+
25+
# Install dependencies
26+
pnpm install
27+
```
28+
1229
## Commands
1330

1431
```bash
15-
npm run dev
32+
# Development server
33+
pnpm run dev
1634

17-
npm run lint
35+
# Build for production
36+
pnpm run build
37+
38+
# Linting
39+
pnpm run lint
40+
41+
# Type checking
42+
pnpm run typecheck
43+
44+
# Format code
45+
pnpm run format
46+
```
47+
48+
## Migration from npm
49+
50+
If you have an existing clone:
51+
52+
```bash
53+
rm -rf node_modules package-lock.json
54+
pnpm install
1855
```

commitlint.config.js

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
11
module.exports = {
22
extends: ["@commitlint/config-conventional"],
3+
parserPreset: {
4+
parserOpts: {
5+
headerPattern: /^([\p{Emoji_Presentation}\p{Extended_Pictographic}]|\w+)(?:\((.+)\))?[:\s]+(.+)$/u,
6+
headerCorrespondence: ["type", "scope", "subject"],
7+
},
8+
},
39
rules: {
4-
"type-enum": [2, "always", ["feat", "fix", "refactor", "style", "test", "docs", "chore"]],
10+
"type-enum": [
11+
2,
12+
"always",
13+
[
14+
"feat",
15+
"fix",
16+
"refactor",
17+
"style",
18+
"test",
19+
"docs",
20+
"chore",
21+
// Gitmoji support
22+
"✨",
23+
"🐛",
24+
"🔧",
25+
"📝",
26+
"💄",
27+
"♻️",
28+
"🔥",
29+
"🚀",
30+
"✅",
31+
"🔒",
32+
"⬆️",
33+
"⬇️",
34+
"🎨",
35+
"🚧",
36+
"💚",
37+
"📦",
38+
"🔀",
39+
],
40+
],
541
},
642
};

0 commit comments

Comments
 (0)