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.0
  • 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"
    }
    
  • Optionall step - Override the commit types and scopes:

    • 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: (I am sorry about this I am working on getting around the require(../../.cz-config) in a nice way. If you know a better way please let me know. I definitelly want to learn how to do this better)
      • 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
  • you should commit your .cz-config.js file to git.

  • if you don't override, this plugin will use the contents of 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.

Related tools:

It prompts for conventional changelog standard.

Please feel free to send any suggestion.

FAQs

Package last updated on 14 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