Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thierrymichel/cz-ccgls

Commitizen adapter following the Conventional-Changelog with support for Gitmoji and Lerna Scopes
https://github.com/thierrymichel/cz-ccgls

Last synced: 2 months ago
JSON representation

Commitizen adapter following the Conventional-Changelog with support for Gitmoji and Lerna Scopes

Awesome Lists containing this project

README

        

# cz-ccgls

> Adapter for [commitizen](https://github.com/commitizen/cz-cli), a prompt for [conventional changelog](https://github.com/conventional-changelog/conventional-changelog) standard.

> Support [gitmoji](https://gitmoji.carloscuesta.me/) and [Lerna](https://lernajs.io/) scopes.

[![npm version](https://img.shields.io/npm/v/cz-ccgls.svg?style=flat-square)](https://www.npmjs.org/package/cz-ccgls)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)
[![License](https://img.shields.io/badge/license-UNLICENSE-green.svg?style=flat-square)](https://github.com/thierrymichel/cz-ccgls/blob/master/UNLICENSE)

Inspired by [cz-conventional-changelog](https://www.npmjs.com/package/cz-conventional-changelog) and [cz-emoji](https://github.com/ngryman/cz-emoji)

![Screenshots](screenshots.gif)

## Usage

### [Making your repo Commitizen-friendly](https://github.com/commitizen/cz-cli#making-your-repo-commitizen-friendly)

First, install the Commitizen cli tools:

```sh
npm install commitizen -g
```

Next, initialize your project to use the cz-ccgls adapter by typing:

```sh
commitizen init cz-ccgls --yarn --dev --exact
```

> Or if you are using Npm: `commitizen init cz-ccgls --save-dev --save-exact`

### Locally

```sh
# Install commitizen + adapter
yarn add -D commitizen cz-ccgls
```

Add some `config` information to your `package.json`

```json
"config": {
"commitizen": {
"path": "./node_modules/cz-ccgls"
}
}
```

> [More infos in the `commitizen` documentation](https://github.com/commitizen/cz-cli#optional-install-and-run-commitizen-locally)

### Configuration

Add some `config` information to your `package.json` ([default values](src/index.mjs#L24))

```json
"config": {
"cz-ccgls": {
"useScopes": true
}
},
```

---

### Related

- [commitlint-config-ccgls](https://github.com/thierrymichel/commitlint-config-ccgls), the [`Commitlint`](https://github.com/marionebl/commitlint) companion.