Package Exports
- @mamba/commitlint-config-standard
- @mamba/commitlint-config-standard/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 (@mamba/commitlint-config-standard) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@mamba/commitlint-config-standard
Commitlint and Commitizen git-cz command line configurations of Stone Payments - Mamba SDK.
Minimal questions config:
type(scope): subject # scope can be overwritten to make more sense to your project, see step 4...Commit types with disabled Emoji:
{
chore: {
description: "Build process or auxiliary tool changes, that don't modify src or test files",
value: "chore",
title: "Chores"
},
ci: {
description: "Changes to our CI configuration files",
value: "ci",
title: "Continuous Integrations"
},
docs: {
description: "Documentation only changes",
value: "docs",
title: "Documentation"
},
feat: {
description: "A new feature",
value: "feat",
title: "Features"
},
fix: {
description: "A bug fix",
value: "fix",
title: "Bug Fixes"
},
perf: {
description: "A code change that improves performance",
value: "perf",
title: "Performance Improvements"
},
refactor: {
description: "A code change that neither fixes a bug or adds a feature",
value: "refactor",
title: "Code Refactoring"
},
revert: {
description: "Reverts a previous commit",
value: "revert",
title: "Reverts"
},
release: {
description: "Create a release commit",
value: "release",
title: "Style"
},
fire: {
description: "Removing code or files",
value: "fire",
title: "Fires"
},
style: {
description: "Changes that do not affect the meaning of the code (Markup, white-space, formatting, missing semi-colons...)",
value: "style",
title: "Style"
},
test: {
description: "Adding missing tests",
value: "test",
title: "Tests"
},
shirt: {
description: "Removing linter warnings",
value: "shirt",
title: "Linter fixes"
},
}Usage
- Install Commitizen globally and
@mamba/commitlint-config-standard,git-czlocally:
yarn global add commitizen
yarn add -D @mamba/commitlint-config-standard git-cz- Add in your
package.jsonadd:
{
"config": {
"commitizen": {
"path": "git-cz"
}
}
}- Add Commitlint config file
commitlint.config.jsat your project root:
// commitlint.config.js
module.exports = {
extends: ['mamba'],
};- Finally add the the
changelog.config.jsat your project root, that git-cz will read:
// changelog.config.js
module.exports = {
...require('@mamba/commitlint-config-standard/cz'),
// scopes: [] // Overrides scopes
};- Run in your terminal:
git cz📑 License
Licensed under the Apache 2.0 License.