JSPM

@hello-litebox/commit-prompt

1.1.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 197
  • Score
    100M100P100Q93262F
  • License MIT

Litebox commitizen adapter using the commitlint.config.js. This is a fork of @commitlint/cz-commitlint

Package Exports

  • @hello-litebox/commit-prompt
  • @hello-litebox/commit-prompt/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hello-litebox/commit-prompt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Commitizen adapter using the commitlint.config.js

@hello-litebox/commit-prompt

This is a commitizen adapter, using this adapter, commitizen works based on commitlint.config.js.

Submit by commitizen, lint by commitlint, just need maintain one configuration file, Consistent and Scalable.

The interactive process is inspired by cz-conventional-changelog.

Getting started

Configure commitizen adapter

npm install --save-dev @hello-litebox/commit-prompt commitizen inquirer@8  # inquirer is required as peer dependency
# or yarn
yarn add -D @hello-litebox/commit-prompt commitizen inquirer@8             # inquirer is required as peer dependency

In package.json

{
  "scripts": {
    "commit": "git-cz"
  },
  "config": {
    "commitizen": {
      "path": "@hello-litebox/commit-prompt"
    }
  }
}

Configure commitlint

⚠️ Important: The required version of commitlint and shared configuration is above 12.1.2, update them if already existed in project

# Install commitlint cli and conventional config
npm install --save-dev @commitlint/config-conventional @commitlint/cli
# or yarn
yarn add @commitlint/config-conventional @commitlint/cli -D

# Simple: config with conventional
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js

Try it out

git add .
npm run commit
# or yarn
yarn commit