0.0.2-rc8 • Published 5 years ago

cheers-cli v0.0.2-rc8

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Cheers

一个用于快速发布版本, 快速生成更新日志的命令行工具

cheers NPM downloads

English | 简体中文

安装

  1. 全局安装
    npm install -g cheers-cli
  2. 本地安装
    npm install -D cheers-cli

配置

  1. ./package.json
    {
      "scripts": {
        "cheers": "cheers"
      },
      "cheers": {
        "commitLink": "https://github.com/olivewind/cheers/commits/%s",
        "issueLink": "https://github.com/olivewind/cheers/issues/%s",
        "dryrun": "on",
        "preHook": "bash pre.sh",
        "postHook": "bash post.sh"
      }
    }
  2. 所有配置

    参数作用默认值
    commitLinkcommit 链接
    issueLinkissue 链接
    dryrun仅生成 changelog 不作其它操作'off'
    preRelease前置钩子
    postRelease后置钩子
    pick提取哪些类型的 commit全部即 'fix', 'feat', 'perf', 'docs', 'refactor'
    dir输出目录./changelogs
    dest输出文件vversion.md

使用

  1. 修改项目 package.jsonversion 为目标版本号

    {
      "version": "0.0.1"
    }
  2. 在项目根目录下执行命令

    npm run cheers

Cheers 做了那些事?

Roadmap

  • 零依赖
  • 业务零侵入
  • 支持仓库地址配置
  • 支持 dryrun
  • 支持 hook
  • 插件系统
  • 支持其它风格 commit message
  • 多语言文档