Commit c34532f0 by 郑其龙

docs(*): 更新说明文档V1.1

parent f42c1fa5
...@@ -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`类似
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment