1.0.2 • Published 16 days ago

flowmit v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

flowmit

NPM Version

English | 简体中文

git commit -m "🦄"

在 Git 中像水流一样提交。🌊

这是一个 CLI 工具,可以帮助你在一个流程中暂存更改、生成提交消息并提交它们。

安装

npm install -g flowmit

// 或者在你的项目中安装:
npm install -D flowmit

使用

只需在终端中运行别名 fm,然后按照提示操作即可!

fm

如果你在你的项目中安装了它,你可以这样运行:

npx flowmit

或者将其添加到你的 package.json 脚本中:

{
  "scripts": {
    "commit": "flowmit"
  }
}

选项

--dry

如果你只想生成提交消息而不提交它,你可以使用 --dry 选项。

fm --dry

配置

你可以通过在你的项目根目录中添加一个 flowmit.config.ts/flowmit.config.js 文件来配置 flowmit

// flowmit.config.ts
import { defineConfig } from './src/config'

export default defineConfig({
  // the types of commit messages you can choose from
  types: [
    { title: 'feat', value: 'feat', description: 'new features' },
    { title: 'fix', value: 'fix', description: 'fix a bug' },
  ],
  // the scopes of the commit messages you can choose from
  scopes: [
    'core',
    'cli',
  ],
  // like --dry option
  dry: true,
})

为什么叫 flowmit?

flow + commit = flowmit

一个简单的等式命名了一个工具!😎

1.0.2

16 days ago

1.0.1

17 days ago

1.0.0

17 days ago

0.0.5

1 month ago

0.0.6

1 month ago

0.0.4

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago