Skip to content

Commit 52fb10e

Browse files
committed
feat(182 line): Node部分增加了cz-cli;项目增加了git cz功能
使用 cz-cli 让我们的项目提交代码更规范、更有套路。
1 parent e47fa48 commit 52fb10e

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# vim
2+
*.swp
3+
4+
npm-debug.log
5+
node_modules
6+
.idea
7+
.DS_Store

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179
- [supervisor](https://www.npmjs.com/package/supervisor) - 监控 Node 代码,自动重启。 A supervisor program for running nodejs programs
180180
- [nodemon](https://github.com/remy/nodemon) - 监控 Node 代码,自动重启。 Nodemon is a utility that will monitor for any changes in your source and automatically restart your server.
181181
- [pm2](https://www.npmjs.com/package/pm2) - 是一个带有负载均衡功能的 Node 应用的进程管理器; 是 [Forever](https://www.npmjs.com/package/forever) 的进阶库,想了解的可以看这篇文章[《拥抱PM2》](http://se77en.cc/2013/06/27/goodbye-node-forever-hello-pm2-translation/)
182+
- [cz-cli](https://github.com/commitizen/cz-cli) - 刚用上的一个 ```git ci``` 工具,让我们的项目提交代码更规范、更有套路。打算写篇文章分享下,文章正在准备中,写完后会补地址。
182183
- [async](https://www.npmjs.com/package/async) - 一个流程控制工具包,提供直接而强大的异步功能
183184
- [optimist](https://www.npmjs.com/package/optimist) - 当需要处理 ```CLI``` 中的 ```argv``` 时(即命令行传参),用它就行了
184185
- [lodash](https://www.npmjs.com/package/lodash) - JS 工具库 ```Underscore.js```的一个 fork 发展而来

package.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "fetool",
3+
"version": "1.0.0",
4+
"description": "大前端的瑞士军刀",
5+
"main": " ",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/nieweidong/fetool.git"
12+
},
13+
"keywords": [
14+
"fetool"
15+
],
16+
"author": "nieweidong",
17+
"license": "MIT",
18+
"bugs": {
19+
"url": "https://github.com/nieweidong/fetool/issues"
20+
},
21+
"homepage": "https://github.com/nieweidong/fetool#readme",
22+
"devDependencies": {
23+
"cz-conventional-changelog": "^1.2.0"
24+
},
25+
"config": {
26+
"commitizen": {
27+
"path": "./node_modules/cz-conventional-changelog"
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)