npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cheers-cli

v0.0.2-rc8

Published

A cli for quickly generating change logs

Downloads

33

Readme

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. 所有配置

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

使用

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

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

    npm run cheers

Cheers 做了那些事?

  • 根据 package.json 取得所需的元信息(版本,配置等)
  • 拿到上一个 tag 至今的所有新 commit
  • 根据 AngularJS Git Commit Message Conventions 风格解析
  • 生成 changelogs/version.md
  • git tag [version]
  • git commit -m 'release [version]'
  • git push origin [branch]
  • git push origin [version]

Roadmap

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