1.0.0 • Published 2 years ago

@baidu-map/bz v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

bz

百度地图物流团队约束git commit message ,内置的百度内部的卡片ID校验

使用

  • 如果全局安装,可直接在控制台中使用 bz 代替 git commit

  • 如果是项目安装,可以在package.json中加一条 命令 "commit":bz

icafeId

在message中增加了一个卡片ID的参数

 messages: {
    icafeId: "请输入iCafe 卡片 ID(必填)",
},
## 如何关闭 icafeId

在`.bz-config.js` 中配置`skipQuestions ["icafeId"]` 跳过该步骤

### 默认配置
> 可根据默认配置自由调整

```js
module.exports = {
    types: [
        { value: "💥 feat", name: "💥 feat:   新功能" },
        { value: "🐛 fix", name: "🐛 fix:    修复" },
        { value: "📝 docs", name: "📝 docs:   文档变更" },
        { value: "🌷 UI", name: "🌷 UI:     代码格式(不影响代码运行的变动)" },
        {
            value: "🛠 refactor",
            name: "🛠 refactor:   重构(既不是增加功能,也不是修复bug)",
        },
        { value: "💄 perf", name: "💄 perf:   性能优化" },
        { value: "🔬 test", name: "🔬 test:   增加测试" },
        { value: "🏰 chore", name: "🏰 chore:  构建过程或辅助工具的变动" },
        { value: "📎 revert", name: "📎 revert:   回退" },
        { value: "⛏ build", name: "⛏ build:   打包" },
    ],

    messages: {
        type: "请选择提交类型:",
        customScope: "请输入修改范围(可选):",
        subject: "请简要描述提交(必填):",
        icafeId: "请输入iCafe 卡片 ID(必填)",
        confirmCommit: "确认使用以上信息提交?(y/n)",
    },
    // 需要跳过的问题
    skipQuestions: ["footer"],
    subjectLimit: 100,
};
1.0.0

2 years ago

0.1.0

2 years ago

0.0.0

2 years ago