Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Conventional-Commits
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑其龙
Conventional-Commits
Commits
c34532f0
Commit
c34532f0
authored
Nov 13, 2019
by
郑其龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(*): 更新说明文档V1.1
parent
f42c1fa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
README.md
+13
-6
No files found.
README.md
View file @
c34532f0
...
@@ -100,10 +100,11 @@
...
@@ -100,10 +100,11 @@
## 安装
## 安装
安装命令如下
。
安装命令如下
:任选其一
> ```bash
> ```bash
> $ npm install -g commitizen
> $ npm install -g commitizen (全局安装)
> $ npm install -d commitizen (项目安装)
> ```
> ```
然后,在项目目录里,运行下面的命令,使其支持 Angular 的 Commit message 格式。
然后,在项目目录里,运行下面的命令,使其支持 Angular 的 Commit message 格式。
...
@@ -145,20 +146,26 @@ ps: 对于`非Node项目`(java、php...)在执行上一条命令前,需要手动
...
@@ -145,20 +146,26 @@ ps: 对于`非Node项目`(java、php...)在执行上一条命令前,需要手动
## 安装使用
## 安装使用
全局安装命令如下:
安装命令如下:任选其一
> ```bash
> ```bash
> $ npm i -g standard-version
> $ npm i -g standard-version (全局安装)
> $ npm i -S standard-version (项目安装)
> ```
> ```
生成CHANGELOG:
生成CHANGELOG:
在
[
package.json
](
)中的`script`中
加入配置:
> "scirpt":{"changelog":"standard-version"}
直接执行,即可生成CHANGELOG文件
> ```bash
> ```bash
> $
standard-version
> $
npm run changelog
> ```
> ```
备注:
备注:
> 生成CHANGELOG的工具很多,[conventional-changelog-cli](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli)也可以用来生成CHANGELOG,安装使用方法和`standard-version`类似
> 生成CHANGELOG的工具很多,[conventional-changelog-cli](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli)也可以用来生成CHANGELOG,安装使用方法和`standard-version`类似
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment