npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@favoloso/conventional-changelog-emoji

v0.10.0

Published

Conventional Changelog with Emojis support

Downloads

376

Readme

@favoloso/conventional-changelog-emoji

Travis CI Coveralls npm

Conventional Changelog with Emojis support 🎉

Installation

yarn add --dev @favoloso/conventional-changelog-emoji

or

npm install --save-dev @favoloso/conventional-changelog-emoji

Usage

conventional-changelog -p @favoloso/emoji -i CHANGELOG.md -s

Usage with release-it

You can use conventional-changelog plugin (v11+) with the @favoloso/emoji preset.

"release-it": {
  "plugins": {
    "@release-it/conventional-changelog": {
      "preset": "@favoloso/emoji",
      "infile": "CHANGELOG.md"
    }
  }
}

Lint (and fix) commit messages

This package provides an additional bin script emoji-commit-lint.

The scripts lints and eventually changes commit messages, from traditional conventional changelog format (i.e. feat: Add a magic feature) to corresponding emoji (i.e. ✨ Add a magic feature), checks and applies correct casing (i.e. lower-case) and many more, as configured by Linter Rules.

To use it, install husky

yarn add --dev husky

Now in your package.json add:

{
  "husky": {
    "hooks": {
      "commit-msg": "emoji-commit-lint"
    }
  }
}

Now linter will check your commits. Any commit like <type>: <msg> will be automatically transformed with related emoji. See Available Emojis to see available types.

Configuration

The package works as-is, but its behaviour may be customized with the following options.

Note: This package supports cosmiconfig to provide configuration options with favolosoEmoji module name.

  • emojis (default: {})

    An object allowing you to customize conventional-changelog types used (as Available Emojis table).

    You should provide an object, where the key is the type you want to edit (or add), and the value is the updated configuration. Configurations will be merged with originals if existing.

    See the Custom Emoji wiki page for further details.

  • rules (default: {})

    Allows to customize linter rules. See the Linter Rules wiki page for further details.

  • showEmojiPerCommit (default: false)

    In the changelog, shows emoji for each commit. In the default mode (false), emojis are omitted from commits and only the heading contains them (i.e. 🐛 Bug Fixes)

  • minorForBreakingInDevelopment (default: true)

    Breaking changes during development will be considered as minor instead of major bumps (see semver spec).

    1. Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable.
  • language (default: en)

    Allows to translate commits group heading in CHANGELOG.md (i.e. 🐛 Bug Fixes) and in linter messages. Languages available: en, it

Example config in package.json

{
  "favolosoEmoji": {
    "showEmojiPerCommit": false
  }
}

Available Emojis

Emoji | Aliases | Type | Type Aliases | Version Bump | In Changelog? | Heading | Order ----- | ------- | ---- | ------------ | ------------ | ------------- | ------- | ----- 🚨 | | breaking | | major | ✅ | 🚨 Breaking Changes | 10 ✨ | 🌟, 💫, 🌠 | feat | | minor | ✅ | ✨ Features | 20 🔒 | | security | | patch | ✅ | 🔒 Security | 25 🛠 | | improvement | imp | patch | ✅ | 🛠 Improvements | 30 ⚡️ | | perf | performance | patch | ✅ | ⚡️ Performance | 35 🐛 | 🐞 | fix | | patch | ✅ | 🐛 Bug Fixes | 40 📚 | 📖 | docs | doc | patch | ✅ | 📚 Documentation | 50 🏗 | ⚙️ | chore | chores | patch | ✅ | 🏗 Chore | 60 ♻️ | | refactor | | patch | | ♻️ Refactoring | 90 🚦 | ✅ | test | | patch | | 🚦 Test | 90 🎨 | 💄 | style | cleanup | patch | | 🎨 Style | 90 📦 | | build | deps | patch | | 📦 Build | 90 🔖 | | release | | patch | | 🔖 Release | 90 🚧 | | wip | | patch | | 🚧 Wip | 90