Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cz-customizable

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cz-customizable

Commitizen customizable adapter following the conventional-changelog format.

  • 2.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
86K
decreased by-16.68%
Maintainers
1
Weekly downloads
 
Created
Source

cz-customizable

This is a customizable Commitizen plugin. You can specify the commit types, scopes and override scopes for specific types.

Commitizen friendly Build Status semantic-release codecov.io npm monthly downloads

Steps:

  • install commitizen case you don't have it: npm install -g commitizen

  • install the cz-customizable: npm install cz-customizable --save-dev

  • configure commitizen to use cz-customizable as plugin. There are a few ways to do this.

    • Option 1: change your package.json
    ...
    "config": {
      "commitizen": {
        "path": "node_modules/cz-customizable"
      }
    }
    
    • Option 2: Create a file called .cz.json
    {
    "path": "node_modules/cz-customizable"
    }
    
  • the postinstall script will automatically create a .cz-config in the root of your project. It also crates a symlink inside node_modules/cz-customizable to point to your config file.

  • you should commit your .cz-config.js file to your git.

  • if you don't provide a config file, this adapter will use the contents of the default file node_modules/cz-customizable/cz-config-EXAMPLE.js

From now on, instead of git commit you type git cz and let the tool do the work for you.

Hopefully this will help you to have consistent commit messages and have a fully automated deployemnt without any human intervention.

It prompts for conventional changelog standard.

Troubleshooting:

you can't see the file .cz-config in the root of your porject.

  • you can manually copy from node_modules/cz-customizable/cz-config-EXAMPLE.js to your project root (where your package.json is) and rename to .cz-config.js

you edited the contents of .cz-config.js but git cz still doesn't show your values

  • probably the post install script didn't create the symlink properly.
    • Manual symlink creation:
      • copy the file cz-config-EXAMPLE.js to the root of your project.
      • rename the file to .cz-config.js and modify the options and scopes as you like.
      • Now create a symlink to your config file:
        • Linux ln -nsf ../../.cz-config.js node_modules/cz-customizable/.cz-config.js
        • Windows (something like this): mklink /D node_modules\cz-customizable\.cz-config.js ..\..\.cz-config.js

Please feel free to send any suggestion.

FAQs

Package last updated on 16 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc