0.0.9 • Published 3 years ago

@buibis/buibis-version v0.0.9

Weekly downloads
17
License
MIT
Repository
github
Last release
3 years ago

buibis-version

自动化版本控制 CLI,自动化生成版本号、CHANGELOG.md、发布 npm 包、生成标签、提交至远程 Git

安装

安装

npm i --save-dev @buibis/buibis-version

在 package.json 中增加 script

{
  "scripts": {
    "release": "buibis-version -r"
  }
}

CLI 使用

如果是 scope 包,如:@buibis/buibis-version,以@buibis开头,请先使用npm publish --access public,提交第一个版本。

# 自动化发布npm包
buibis-version -release
# 自动化发布npm包并提交git
buibis-version -p
# 自动更新版本并生CHANGELOG.md
buibis-version -log

配置

--release [target]       自动化发布npm包
          [target]       目标目录
--publish [target]            自动化发布npm包并提交git
--changelog [target]     自动更新版本并生CHANGELOG.md
--changelogTag [target]  自动更新版本并生CHANGELOG.md,并打tag

changelog 支持的 commit 类型:

"types": [
    {"type": "feat", "section": "Features"},
    {"type": "fix", "section": "Bug Fixes"},
    {"type": "chore", "hidden": true},
    {"type": "docs", "hidden": true},
    {"type": "style", "hidden": true},
    {"type": "refactor", "hidden": true},
    {"type": "perf", "hidden": true},
    {"type": "test", "hidden": true}
]

社区相关的工具

虽然社区的工具已经很强大。但是这些工具个人感觉用起来稍微不习惯。学习了它们的思路后,就抽时间写了这个简单的工具,算是学以致用吧。

0.0.9

3 years ago

0.0.8

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago