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

conventional-changelog-befe

v2.1.0

Published

conventional-changelog @baidu/preset for baidu BEFE.

Downloads

20

Readme

conventional-changelog-befe

build status NPM version NPM Downloads

conventional-changelog preset for baidu BEFE.

样例项目

icode commit-demo

规范标准

除了上述规范标准以外,befe 规范还支持:

type 允许大写字母开头

  • build/Build: 构建相关
  • chore/Chore: 其他繁杂事务的变动
  • ci/Ci: ci 相关的变动
  • docs/Docs: 文档书写改动
  • feat/Feat: 新功能,新特性 (体现在 changelog)
  • fix/Fix: Bug 修复 (体现在 changelog)
  • perf/Perf: 性能优化相关 (体现在 changelog)
  • refactor: 重构(即不是新增功能,也不是修改 bug 的代码变动)
  • revert/Revert: 代码回滚 (体现在 changelog)
  • style/Style: Code Style 修改
  • test/Test: 测试相关
  • temp/Temp: 临时提交

scope / subject 允许中文

feat(编辑页面): 添加自动保存

特殊的

一个提交中包含多个 type (v2.0)

有时候可能一次提交中涉及的操作比较多,这时候需要安装如下的规则提交,才能正常解析生成 changelog,当然更建议的还是分开提交啦。

fix: foo & feat: add something & chore: abc @yucong02

some description
fix: foo
feat: add something
chore: abc @yucong02

some description

代码回滚 Revert

除了支持规范定义的

revert: fix: something

This reverts commit 05699d0ded15dc35a038612a38185aa71274151.

同时支持默认 git revert message 模板

Revert "fix: something"

This reverts commit 05699d0ded15dc35a038612a38185aa71274151.

支持 icode / baidu gitlab / icafe

如果是 icode 或 baidu gitlab 仓库(会读取 package.json 中的 repository 或者 获取 git 远端地址),需要在 package.json 中配置 icafe 字段,对应为该项目的 icafe Id。

{
  "icafe": "dulife-hr"
}

或者

{
  "icafe": {
    "spaceId": "dulife-hr"
  }
}

然后在 commit message 中匹配的 #123 将会在 changelog 对应为 icafe 对应 issue 地址。

如果是想关联其他项目的卡片,则需要在 commit message 中书写完整的 icafe ID, 如

feat: 完成 changelog 文档任务

closes BEFE-ERP-225 befe-erp-564

changelog 支持中英文

package.json 中配置

{
  "lang": "zh" // 'zh' | 'en'
}

默认为系统语言

使用

安装

npm i conventional-changelog-cli @baidu/conventional-changelog-befe -D --registry=http://registry.npm.baidu-int.com

在项目 (package.json) 配置

{
  "scripts": {
    "changelog": "conventional-changelog -p @baidu/befe -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
    "version": "npm run changelog"
  }
}

触发

执行 npm version [version] 或直接执行 npm run changelog

Related

License

MIT