JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q69534F
  • License MIT

A tool for fully automatic publishing of npm packages

Package Exports

  • cimi
  • cimi/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cimi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm npm

Cimi

一款全自动 npm 发包工具,一行命令帮助你 git replase、创建 git tag、发布 npm 包。

Cimi 自动生成新版本号,自动生成 commit message,创建 tag,push 到 github,最后发布到 npm 中,整个过程只需要一行命令,解放你的双手!

使用示例

Screenshot

Cimi 有什么优势?

当我们在开发组件库或者其他开源工具包时,我们发一个新的 NPM 包可能需要这些工作:

  • 手动修改package.json中的version.
  • git add .git commit -m "xxxx"生成一个提交.
  • git push origin master 推送到远端.
  • 在 github 中打一个新tag.
  • npm publish将代码提交到 NPM.

听起来是不是很麻烦?而有了cimi,你只需要一行简单的代码:

cimi patch main

就可以完成上面所有事情。

Cimi 修改版本规则

Cimi共有五种规则,来进行发包,其实也就是确定版本号。

  • cimi patch 更新一个小版本,如 1.1.0 -> 1.1.1,如 bug 修复;
  • cimi minor 更新一个中版本,如 1.1.0 -> 1.2.0,如新增功能;
  • cimi major 更新一个大版本,如 1.1.0 -> 2.1.0,如重构架构;
  • cimi beta 将当前版本转为 beta 版本,如 1.1.0 -> 1.1.0-beta,如生产前测试;
  • cimi upgradeBeta 将当前 beta 版本升级一次 beta 号,如 1.1.0-beta -> 1.1.0-beta2,如二次测试;