File tree 1 file changed +11
-21
lines changed
1 file changed +11
-21
lines changed Original file line number Diff line number Diff line change 1
- > commit prompt using .commitlintrc
1
+ > commitizen adapter using .commitlintrc
2
2
3
3
# @commitlint/prompt
4
4
5
- ## Installation
5
+ ## Getting started
6
6
7
7
``` bash
8
- npm install --save @commitlint/prompt commitizen
8
+ npm install --save @commitlint/prompt @commitlint/config-angular commitizen
9
+ echo ' {"extends": ["@commitlint/config-angular"]}' > .commitlintrc
9
10
```
10
11
11
- ## Configuration
12
-
13
- ` @commitlint/prompt ` is a ` commitizen ` adapter.
14
- Configure ` commitizen ` to use it:
15
-
16
- ``` json
12
+ In package.json
13
+ ```
17
14
{
15
+ "scripts": {
16
+ "commit": "git-cz"
17
+ },
18
18
"config": {
19
19
"commitizen": {
20
20
"path": "@commitlint/prompt"
@@ -23,17 +23,7 @@ Configure `commitizen` to use it:
23
23
}
24
24
```
25
25
26
- ## Usage
27
-
28
- Use the [ commitizen] ( https://github.com/commitizen/cz-cli ) command line
29
- interface to start ` @commitlint/prompt ` .
30
-
31
26
``` bash
32
- # do stuff in your project …
33
-
34
- # … then stage your changes
35
- git add
36
-
37
- # Execute the commitizen cli
38
- git-cz
27
+ git add .
28
+ npm run commit
39
29
```
You can’t perform that action at this time.
0 commit comments