-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: commitlint, commitizen script 수정 (#18)
* chore: commitizen, commitlint 수정 * chore: cz-config.js 수정 * chore: husky pre-push에 빌드 명령어 추가
- Loading branch information
Showing
3 changed files
with
58 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
{ "extends": ["@commitlint/config-conventional"] } | ||
{ | ||
"extends": ["@commitlint/config-conventional"], | ||
"rules": { | ||
"type-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"feat", | ||
"fix", | ||
"refactor", | ||
"design", | ||
"comment", | ||
"style", | ||
"test", | ||
"chore", | ||
"init", | ||
"rename", | ||
"remove", | ||
"docs" | ||
] | ||
] | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,42 @@ | ||
// eslint-disable-next-line no-undef | ||
module.exports = { | ||
|
||
types: [ | ||
{ value: 'feat', name: 'feat:\tfeature를 추가하는 경우' }, | ||
{ value: 'fix', name: 'fix:\t코드를 수정하는 경우' }, | ||
{ value: 'docs', name: 'docs:\t문서를 추가하거나 수정하는 경우' }, | ||
{ | ||
value: 'style', | ||
name: 'style:\t코드 포맷팅, 세미콜론 누락, 코드 변경이 없는 경우', | ||
}, | ||
{ value: 'refactor', | ||
name: 'refactor:\t(버그나 기능 추가 X) 코드를 리팩토링하는 경우', | ||
}, | ||
{ | ||
value: 'test', | ||
name: 'test:\t(프로덕션 코드 변경 X) 테스트를 추가하거나 테스트 리팩토링하는 경우', | ||
}, | ||
{ | ||
value: 'chore', | ||
name: 'chore:\t 빌드 태스크 업데이트, 패키지 매니저를 설정하는 경우', | ||
}, | ||
{ value: 'feat', name: 'feat:\tfeature를 추가하는 경우' }, | ||
{ value: 'fix', name: 'fix:\t코드를 수정하는 경우' }, | ||
{ value: 'docs', name: 'docs:\t문서를 추가하거나 수정하는 경우' }, | ||
{ value: 'refactor', name: 'refactor:\t(버그나 기능 추가 X) 코드를 리팩토링하는 경우' }, | ||
{ value: 'design', name: 'design:\tCSS 등 사용자 UI 디자인 변경' }, | ||
{ | ||
value: 'style', | ||
name: 'style:\t코드 포맷팅, 세미콜론 누락, 코드 변경이 없는 경우', | ||
}, | ||
{ | ||
value: 'test', | ||
name: 'test:\t(프로덕션 코드 변경 X) 테스트를 추가하거나 테스트 리팩토링하는 경우', | ||
}, | ||
{ | ||
value: 'chore', | ||
name: 'chore:\t빌드 태스크 업데이트, 패키지 매니저를 설정하는 경우', | ||
}, | ||
{ | ||
value: 'init', | ||
name: 'init:\t프로젝트 초기 생성', | ||
}, | ||
{ | ||
value: 'rename', | ||
name: 'rename:\t파일 혹은 폴더명 수정하거나 옮기는 경우', | ||
}, | ||
{ | ||
value: 'remove', | ||
name: 'remove:\t파일을 삭제하는 작업만 수행하는 경우', | ||
}, | ||
{ | ||
value: 'docs', | ||
name: 'docs:\t문서를 추가하거나 수정하는 경우', | ||
}, | ||
], | ||
allowCustomScopes: false, | ||
allowBreakingChanges: ['feat', 'fix'], | ||
skipQuestions: ['body'], | ||
subjectLimit: 100, | ||
}; | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run lint | ||
npm run build |