@spyke/conventional-changelog-preset

1.0.5 • Public • Published

@spyke/conventional-changelog-preset

downloads CI license

A preset for Conventional Changelog and Lerna making output similar to Babel's changelog with emojis, fancy categories and sorting.

Example output.

Sections:

  • 🐛 Bug Fix
  • 📝 Documentation
  • 🏠 Internal
  • 🚀 New Feature
  • 🏃‍♀️ Performance
  • 💅 Polish
  • ↩️ Revert

Commit types:

  • "feat" (NewFeature)
  • "feature" (NewFeature)
  • "fix" (BugFix)
  • "polish" (Polish)
  • "refactor" (Polish)
  • "docs" (Documentation)
  • "chore" (Internal)
  • "test" (Internal)
  • "perf" (Performance)
  • "revert" (Revert)

All other commit types are ignored by default.

Installation

npm install --save-dev @spyke/conventional-changelog-preset
# or
yarn add --dev @spyke/conventional-changelog-preset

Usage

Use changelogPreset options in lerna.json:

{
    "changelogPreset": "@spyke/conventional-changelog-preset",
}

Or specify it via command line:

lerna version --conventional-commits --changelog-preset '@spyke/conventional-changelog-preset'

You can override preset options in lerna.json's changelogPreset property by using an object instead of a string. For example, to define custom commit types use full section names:

{
  "changelogPreset": {
    "name": "@spyke/conventional-changelog-preset",
    "types": [
      { "type": "addition", "section": ":rocket: New Feature" },
      ...
    ]
  }
}

License

Based on the conventional-changelog-conventionalcommits.

Licensed under the MIT License, see LICENSE for more information.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    332
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    332
  • 1.0.4
    0
  • 1.0.3
    0
  • 1.0.2
    0

Package Sidebar

Install

npm i @spyke/conventional-changelog-preset

Weekly Downloads

332

Version

1.0.5

License

MIT

Unpacked Size

18.6 kB

Total Files

13

Last publish

Collaborators

  • spyke