Skip to content

Commit

Permalink
🔧 [config] 完善changelog生成功能
Browse files Browse the repository at this point in the history
  • Loading branch information
lanjingling0510 committed Dec 15, 2016
1 parent b5cc6f8 commit 21e5a5e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
v0.0.1 - Wed, 14 Dec 2016 14:41:24 GMT
--------------------------------------

- [b5cc6f8](../../commit/b5cc6f8)[feature] 添加changelog配置


v0.0.0 - Wed, 14 Dec 2016 14:40:19 GMT
--------------------------------

- [d7bcd1e](../../commit/d7bcd1e) chore(package.json): updaten version to 0.0.1 by cqGit
- [92e1fc3](../../commit/92e1fc3) 🔧 [config] 调整命令配置
- [f78fd02](../../commit/f78fd02) 🔧 [config] 修改命令脚本代码
- [325b995](../../commit/325b995)[feature] 添加发布流程
- [5bdbe30](../../commit/5bdbe30) 📚 [document] 修改 reademe.md 配置说明链接
- [298f76f](../../commit/298f76f)[feature] markdown支持html标签
- [532e130](../../commit/532e130) first commit
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"scripts": {
"start": "./scripts/start.sh",
"release": "./scripts/release.sh",
"build": "rm -rf dist && env NODE_ENV=production webpack --config ./config/webpack.js"
"build": "rm -rf dist && env NODE_ENV=production webpack --config ./config/webpack.js",
"changelog": "changelog -t $npm_package_version -m '\\[config\\]|\\[feature\\]|[\\document\\]|\\[refact\\]|\\[bug\\]'"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -87,4 +88,4 @@
"jsdoc-to-markdown": "^2.0.1",
"thunkify": "^2.1.2"
}
}
}
3 changes: 2 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
npm run build
#生成文档
node ./index.js
#生成新的tag
cqGit
#发布npm包
./release_npm.sh
./node_modules/.bin/changelog -t v0.0.0 -m '\\[config\\]|\\[feature\\]|[\\document\\]|\\[refact\\]|\\[bug\\]'

0 comments on commit 21e5a5e

Please sign in to comment.