Skip to content

Commit e78a3c4

Browse files
authored
Merge pull request #1 from CarToi/docs/convention
[docs] #0 README.md 컨벤션 내용 추가
2 parents 28df7c0 + 8456d71 commit e78a3c4

File tree

1 file changed

+46
-28
lines changed

1 file changed

+46
-28
lines changed

README.md

Lines changed: 46 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,54 @@
1-
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
1+
## ✅ 컨벤션
2+
3+
### 네이밍 컨벤션
4+
5+
- 상수: `SNAKE_CASE`
6+
- 컴포넌트, interface 타입: `PascalCase`
7+
- 변수, 함수: `camelCase`
8+
- 폴더명: `kebab-case`
9+
- 파일명
10+
- 이미지 파일(public 폴더): `_`(언더바)로 구분
11+
- 이미지 import 시: `PascalCase`
12+
- 페이지 및 API 파일 (app, api 폴더): `kebab-case`
13+
- 컴포넌트 파일 (components 폴더): `PascalCase`
14+
- 유틸리티 파일 (lib, utils, hooks 폴더): `camelCase`
15+
16+
### 타입
17+
18+
- **feat** : 새로운 기능 추가
19+
- **fix** : 버그 수정
20+
- **docs** : 문서 수정
21+
- **style** : 코드 스타일 변경(코드 포맷팅, 세미콜론 누락, 코드 변경이 없는 경우 등)
22+
- **design**: 사용자 UI 디자인 변경(CSS 등)
23+
- **refactor** : 코드 리팩토링
24+
- **test** : 테스트 코드 작성
25+
- **build**: 빌드 파일 수정
26+
- **ci**: CI 설정 파일 수정
27+
- **perf**: 성능 개선
28+
- **chore**: 빌드 수정, 패키지 매니저 설정, 운영 코드 변경이 없는 경우 등
29+
- **rename** : 파일 혹은 폴더명을 수정한 경우
30+
- **remove**: 파일 삭제만 한 경우
31+
32+
### 커밋 메세지
233

3-
## Getting Started
4-
5-
First, run the development server:
6-
7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
34+
```
35+
type: 요약
1536
```
1637

17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18-
19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20-
21-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22-
23-
## Learn More
24-
25-
To learn more about Next.js, take a look at the following resources:
38+
### 브랜치명
2639

27-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
40+
```
41+
type/#Issue-Number/Content
42+
```
2943

30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
44+
### 이슈 제목
3145

32-
## Deploy on Vercel
46+
```
47+
[type] Content
48+
```
3349

34-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
50+
### PR 제목
3551

36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
52+
```
53+
[type] #Issue-Number Content1 / Content2 ...
54+
```

0 commit comments

Comments
 (0)