# minimalcommit

> A minimalist approach toward git commits to keep things simple.

Latest version **1.0.2** (published 2023-04-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install minimalcommit
pnpm add minimalcommit
yarn add minimalcommit
bun add minimalcommit
```

Provides the command `mct`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-04-03 |
| First published | 2023-04-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 41 |
| Author | khattakdev |
| Maintainers | khattakdev |
| Keywords | git, commit, push, pull |

## Links

- npm: https://www.npmjs.com/package/minimalcommit
- Repository: https://github.com/khattakdev/minimalcommit
- Homepage: https://github.com/khattakdev/minimalcommit#readme
- Issues: https://github.com/khattakdev/minimalcommit/issues
- npm.io page: https://npm.io/package/minimalcommit

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^5.2.0
- [inquirer](https://npm.io/package/inquirer.md) ^9.1.5

## Recent versions

- 1.0.2 (latest) — 2023-04-03
- 1.0.1 — 2023-04-03

## README

# Minimal Commit

> _A minimalist approach toward `git commit` to keep commits simple._

## What is Minimal Commit?

Minimal commit is a Node.js based CLI (command line interface) tool that helps you and your team mates to stay consistent with the `git commit` messages. To commit files using **Minimal Commit**, you have a list of options to choose from, this list consist type of work you did. This makes things simple and less confusing by choosing an option from a list.

The list of options is limited to only **nine types**. This is done on purpose to keep the list as short as possible to avoid confusion. The more options you have, the more confusing it will be.

## Types
Following are the nine types of commits.
- `✨ feat` to be used for a new feature
- `🐛 fix` to be used for bug fixes
- `💥 break` to be used for breaking changes
- `♻️ ref` to be used for making code/folder refactor
- `🔖 ver` to be used for version changes
- `📝 docs` to be used for documentation
- `🎨 style` to be used for CSS changes
- `🛠 config` for configuration, and dependencies changes
- `📦 misc` to be used for others

## Installation

To install **Minimal Commit**, you can use the following command.

```
npm install -g minimalcommit
```

## Why Minimal Commit?

- Straight Forward
- Easy to read
- Visually appealing

## Usage
```
mct
```

![Minimal Commit demo](https://user-images.githubusercontent.com/37709578/229569956-592effaa-63e6-4f15-8870-6c5f9061f19f.gif)


## How to write commits?

Here’s the general syntax of Minimal Commit.

```
<type>: <message>
```

> ⚠️ All of the commits must be written in the present tense.
> Following are some examples:

```
✨ feat: added sign-up feature ❌
✨ feat: add sign up feature ✅

🛠 config: removed extra extension files ❌
🛠 config: remove extra extension files ✅
```

The commit title should be precise, and to the point but at the same time, it shouldn't be vague. All of the extra details should go in the description (_⚠️ Descriptions are not supported yet_.)

```
✨ feat: add new feature ❌
✨ feat: add sign up feature with forgot password and auth with Google ❌
✨ feat: add sign up feature using OAuth ✅
✨ feat: add sign up feature ✅
```

Following are some more examples:

```
🛠 config: add .gitignore file
♻️ ref: move functions to helper.js
📦 misc: add initial test cases
📦 docs: update docs with v2.0 features
```

### Examples

- You added `.yaml` file for GitHub Actions

`✨ config: add .yaml file for github actions`

- You added some tests cases for the user interface

`📦 misc: add test cases for ui`

- You moved some part of the code to components folder

`♻️ ref: move pages code into components`

- You updated the code that caused some breaking changes

`💥break: update sign-up api endpoints`

- You made some changes to the user interface

`🎨 ui: update the auto pages`

## Support

If you like the work, please give this repo a ⭐️ and feel free to contribute to this project through issues, and pull requests.

---
_Source: https://npm.io/package/minimalcommit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
