@brightcove/kacl

中文文档
0.1.11发布于 2020/10/08Apache-2.0CommonJS近 30 天下载 7089

Keep a Changelog tooling for automating changelog releases

原始使用文档
文档目录11 节
  1. Usage
  2. Requirements
  3. Installation
  4. CLI Usage
  5. Usage in package.json
  6. Usage with gh-release
  7. Info
  8. Maintainers
  9. Contributions
  10. Issues and Questions
  11. Attributions and Thanks

Version Downloads Build Status Coverage Greenkeeper badge

kacl

Keep a Changelog tooling for linting and automatically releasing changelogs

Usage

Requirements

  • Node 8+
  • package.json contains a valid git repository URL

Installation

npm i -D @brightcove/kacl

You can also install globally to easily initialize changelogs in your projects:

npm i -g @brightcove/kacl

CLI Usage

If installed globally, you can run the kacl command. If not, you can run it from your project's node_modules folder: ./node_modules/.bin/kacl

Usage: kacl init|lint|prerelease|release

  init       - Initializes a new CHANGELOG.md
  lint       - Lints your changelog for errors
  prerelease - Checks the requirements for creating a new release (should be added to the "preversion" script)
  release    - Creates a new release matching your package.json version (should be added to the "version" script)

Usage in package.json

kacl is most effective when added to package.json scripts as it can be used to completely automate changelog changes when running npm version. The following is a recommendation for setting up package.json scripts to use kacl.

{
  "scripts": {
    "posttest": "kacl lint",
    "preversion": "kacl prerelease",
    "version": "kacl release && git add CHANGELOG.md"
  }
}

This setup does the following:

  • Lints your changelog after running tests
  • Checks the changelog before bumping the version with npm version to ensure there is an unreleased entry
  • Updates the changelog and adds it to git after the version has been bumped with npm version. The changelog changes will automatically be committed as part of npm version.

Usage with gh-release

gh-release is a tool which will automatically create a tag and release on GitHub. It pairs nicely with kacl, and with both tools you can completely automate your version bumping. The following is a recommendation for setting up package.json scripts to use kacl with gh-release.

{
  "scripts": {
    "posttest": "kacl lint",
    "preversion": "kacl prerelease",
    "version": "kacl release && git add CHANGELOG.md",
    "postversion": "git push && gh-release"
  }
}

This performs the same steps as what's laid out in the Usage in package.json section, with the addition of the following:

  • Pushes the new version to GitHub and creates a GitHub release using the updated changelog.

Info

Maintainers

None. The former lead maintainer, who has left Brightcove, is

Contributions

Contributions are welcome, please see the contributing guidelines.

Issues and Questions

This project uses github issues, please file issues and questions here.

Attributions and Thanks

This project uses the keep-a-changelog library from Oscar Otero for parsing and manipulating changelogs. It's an awesome library which you should definitely check out if you're interested in helping improve project changelogs.

版本与发布记录

@brightcove/kacl 共发布 10 个版本,首次发布于 2018/08/24;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.1.11latest2020/10/086 年前
0.1.82019/08/297 年前
0.1.72019/07/187 年前
0.1.62018/11/028 年前
0.1.52018/09/048 年前
0.1.42018/08/278 年前

关于 @brightcove/kacl 的常见问题

@brightcove/kacl 是什么?

Keep a Changelog tooling for automating changelog releases

如何安装 @brightcove/kacl?

在项目目录运行 npm install @brightcove/kacl,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 kacl,可以用 npx kacl 直接运行。

@brightcove/kacl 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/brightcove__kacl 是否存在。

@brightcove/kacl 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@brightcove/kacl 可以商用吗?

@brightcove/kacl 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@brightcove/kacl 的下载量有多少?

根据 npm 官方下载统计,@brightcove/kacl 在 2026/10/09 – 2026/11/07 这 30 天内被下载 7,089 次,日均约 236 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@brightcove/kacl 还在维护吗?

最新版本 0.1.11 发布于 2020/10/08(6 年前);至今共发布 10 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/08/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。