1

start a picture

2022-05-15 12-30-49.2022-05-15 12_49_04.gif

Before "Making Your Commit More Valuable" , it took several steps to configure commitizen . For example, first commitizen needs to be initialized and select commitizen adapter, then commitlint needs to be installed, and finally husky may be required to configure git hooks.

Now, it only takes two steps to complete the above work and make everything easier.

1. Install cz-relax in the working directory

 npm install cz-relax --save-dev

2. Initialize

 npx cz-relax init

If you want to use Chinese prompts:

 npx cz-relax init --language zh

After completing the above two steps, you can use it normally git commit , and commitizen will take effect.

In addition, the default adapter used by cz-relax is cz-git , which supports domestic production.

feedback

  1. Warehouse address: https://github.com/qiqihaobenben/commitizen-relax
  2. ISSUES: https://github.com/qiqihaobenben/commitizen-relax/issues

方旭
3.3k 声望1.7k 粉丝

移山之志,一点一滴。