Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

Latest commit

 

History

History
83 lines (56 loc) · 2.28 KB

README.md

File metadata and controls

83 lines (56 loc) · 2.28 KB

cz-cli

npm Build Status

Deprecated

This package has been depreated because:


commitizen CLI and the adapters as local dependencies.

The commitizen adapter that is used when you commit your changes is determined based on the following steps.

  1. If config.commitizen.path exists in your package.json, the config and the adapter are used.

  2. If config.cz-customizable.config exists in your package.json, the config and cz-customizable are used.

  3. If .cz-config.js exists in the current working directory or the ancestors, the .cz-config.js and cz-customizable are used.

  4. Otherwise cz-conventional-changelog is used.

Installation

Install @whizark/cz-cli as a local dependency.

npm install @whizark/cz-cli --save-dev

Usage

Add scripts.commit to your package.json.

{
    "scripts": {
        "commit": "git cz"
    }
}

When you want to commit your changes, all you need to do is type the following command.

npm run commit

As a shortcut, you might type the following command with npm-quick-run.

nr commit

Or you can run git command with npm-run.

npm-run git cz

In this case, you need not add scripts.commit into your package.json.