A few configurations for using gitmojis in cz
a gitmojis config for commitlint
pnpm add -D commitlint-config-czg-gitmoji
Ensure you have commitlint installed.Echo the following code to your commitlint config
(e.g. commitlint.config.ts
, commitlint.config.js
or .commitlintrc.js
):
export default {
extends: ['czg-gitmoji'],
}
// for cjs
module.exports = {
extends: ['czg-gitmoji'],
}
Inspired by commitlint-config-gitmoji
a gitmojis adapter for cz-git prompts
pnpm add -D cz-git-prompts
Ensure you have czg
cli or commitizen
+ czg-git
installed.
Echo the following code to your commitlint config(e.g.commitlint.config.js
) or czg config(e.g. cz.config.js
):
// for `commitlint.config.js`
import promptsConfig from 'cz-git-prompts'
export default {
// ...
...promptsConfig,
}
// for `cz.config.js`
export default {
// ...
...promptsConfig.prompt,
}
About cz-git
prompts, see cz-git
At present, the release process relies on
changesets
, and configuring thesemantic-release
tool requires some time to code.