@localazy/conventional-changelog-preset

1.2.9 โ€ข Public โ€ข Published

Localazy

๐Ÿ“ฆ @localazy/conventional-changelog-preset

Plugin for conventional-changelog with support for emoji commits and squashed PRs.

๐Ÿ”ง Installation

npm i -D conventional-changelog \
conventional-changelog-cli \
conventional-recommended-bump@9 \
https://github.com/localazy/conventional-changelog-preset.git \
https://github.com/localazy/conventional-changelog-writer.git

๐Ÿš€ Usage

# show cli help
npx conventional-changelog --help
# regenerate whole changelog
npx conventional-changelog -p @localazy/preset -i CHANGELOG.md -s -r 0
# add latest release to changelog
npx conventional-changelog -p @localazy/preset -i CHANGELOG.md -s -r 1
# preview unreleased changelog
npx conventional-changelog -p @localazy/preset -u
# preview recommended bump: patch|minor|major
npx conventional-recommended-bump -p @localazy/conventional-changelog-preset

๐Ÿ”จ Configuration

You can create .changelogrc.json file in your root folder to extend or create additional emoji groups. Look at the default configuration file for reference. Use type property as identifier when extending existing configuration.

{
  "emojis": [
    {
      "type": "feat",
      "emojiAliases": [
        "๐ŸŒŸ",
        "๐Ÿ’ซ",
        "๐ŸŒ ",
        "๐Ÿ’™"
      ]
    }
  ]
}

๐ŸŽ‰ Available Emojis

Emoji Aliases Type Type Aliases Version Bump In Changelog? Heading Order
๐Ÿ’ฅ breaking major โœ… ๐Ÿ’ฅ Breaking Changes 10
โœจ ๐ŸŒŸ, ๐Ÿ’ซ, ๐ŸŒ  feat feature minor โœ… โœจ Features 20
โšก๏ธ perf performance patch โœ… โšก๏ธ Performance 30
๐Ÿ› ๐Ÿž, ๐Ÿš‘, ๐Ÿšจ fix fixes, hotfix, hotfixes patch โœ… ๐Ÿ› Bug Fixes 40
๐Ÿ“š ๐Ÿ“–, ๐Ÿ“ docs doc patch โœ… ๐Ÿ“š Documentation 50
๐Ÿงช โœ…, ๐Ÿšฆ test tests patch โœ… ๐Ÿงช Tests 60
โ™ป๏ธ ๐Ÿฆ„ refactor patch โœ… ๐Ÿงฐ Other Commits 70
๐Ÿ’„ ๐ŸŽจ, ๐ŸŒˆ style cleanup, format, lint patch โœ… ๐Ÿงฐ Other Commits 71
๐Ÿ”ง โš™๏ธ, ๐Ÿ—, โฌ†๏ธ chore chores, deps, build, ci patch โœ… ๐Ÿงฐ Other Commits 72
๐Ÿš€ release patch 1000

๐Ÿ“œ License

Code released under the MIT license.

Package Sidebar

Install

npm i @localazy/conventional-changelog-preset

Weekly Downloads

1

Version

1.2.9

License

MIT

Unpacked Size

19.7 kB

Total Files

16

Last publish

Collaborators

  • xbilek18
  • localazy-team