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

emoji-commit-helpers

v0.1.1

Published

Commitlint and Commitizen helpers for working with Gitmoji

Downloads

3

Readme

Emoji Commit Helpers

This module assist users in using the Emoji-style git commit format :emoji: (scope) Subject. It currently makes sharing emoji and scope possible between Commitizen and Commitlint easy and can automatically generate package-based scopes for Lerna projects.

Configuring Commitizen and Commitlint

Commitizen

In package.json, add the following:

{
  "config": {
    "commitizen": {
      "path": "./node_modules/emoji-commit-helpers/commitizen.js"
    }
  }
}

Commitlint

In .commitlintrc.js, do the following:

const config = require('emoji-commit-helpers/commitlint');

module.exports = config;

This will set all the rules, patterns, and helpers you need correctly. The commitlint configuration supports either the actual emoji or the emoji code (:code:).

Run Both on Code Commit

To run both Commitizen (to prepare your commit message) and Commitlint (to ensure your commit message is formatted correctly) automatically, first install husky, @commitlint/cli, and @commitizen, then add the following to your package.json file:

{
  "husky": {
    "hooks": {
      "prepare-commit-msg": "exec < /dev/tty && git-cz --hook || true",
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  }
}

Configuring Emoji Commit Helpers

To configure Emoji Commit Helpers, first add one of the following files:

  • .commitrc
  • .commitrc.yml
  • .commitrc.json
  • .commitrc.js

Then, configure either the types to include and/or the scopes:

emoji:
  - style
  - perf
  - prune
  - fix
  - quickfix
  - docs
  - feature
scopes:
  - name: Root
    description: Root of my project
  - name: Modules
    description: Project Modules

Available Emoji

| Type | Emoji | Code | Description | | :----------- | :---: | :-------------------- | :----------------------------------------- | | style | 🎨 | :art: | Improving structure / format of the code. | | perf | 🐎 | :racehorse: | Improving performance. | | prune | 🔥 | :fire: | Removing code or files. | | fix | 🐛 | :bug: | Fixing a bug. | | quickfix | 🚑 | :ambulance: | Critical hotfix. | | feature | 🆕 | :new: | Introducing new features. | | docs | 📝 | :memo: | Writing docs. | | deploy | 🚀 | :rocket: | Deploying stuff. | | ui | 💎 | :gem: | Updating the UI and style files. | | init | 🎉 | :tada: | Initial commit. | | test | ✅ | :white_check_mark: | Adding tests. | | security | 🔒 | :lock: | Fixing security issues. | | release | 🔖 | :bookmark: | Releasing / Version tags. | | lint | 👕 | :shirt: | Removing linter warnings. | | wip | 🚧 | :construction: | Work in progress. | | fix-ci | 💚 | :green_heart: | Fixing CI Build. | | downgrade | ⬇️ | :arrow_down: | Downgrading dependencies. | | upgrade | ⬆️ | :arrow_up: | Upgrading dependencies. | | pushpin | 📌 | :pushpin: | Pinning dependencies to specific versions. | | refactoring | ♻️ | :recycle: | Refactoring code. | | dep-add | ➕ | :heavy_plus_sign: | Adding a dependency. | | dep-rm | ➖ | :heavy_minus_sign: | Removing a dependency. | | config | 🔧 | :wrench: | Changing configuration files. | | compat | 👽 | :alien: | Updating code due to external API changes. | | mv | 🚚 | :truck: | Moving or renaming files. | | breaking | 💥 | :boom: | Introducing breaking changes. | | docs-code | 💡 | :bulb: | Documenting source code. | | ux | 🚸 | :children_crossing: | Improving user experience / usability. | | see-no-evil | 🙈 | :see_no_evil: | Adding or updating a .gitignore file | | camera-flash | 📸 | :camera_flash: | Adding or updating snapshots | | experiment | 🔮 | :crystal_ball: | Experimenting new things |