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

cz-cc

v1.0.1

Published

Commitizen adaptor that follows the Conventional Commits specification (with support for semantic emoji ✨)

Downloads

157

Readme

cz-cc

build NPM semantic-release Commitizen friendly Conventional Changelog

A commitizen adaptor that follows the Conventional Commits specification.

DEMO

✨ Features

  • Supports semantic emoji in commit subject message
  • Customizable questions (disable any question)
  • Searchable choices for type & scope
  • Customizable type values, descriptions and associated emojis
  • Customizable scope values
  • Better CLI prompts
  • 0 modification required when migrating from cz-conventional-changelog

🎨 Default Commit Types

| type | emoji | description | |----------|-------|-------------------------------------------------------------------------------------------------| | feat | ✨ | A new feature | | fix | 🐛 | A bug fix | | chore | 🔧 | Changes that do not modify src or test files | | refactor | 🧹 | Changes that neither fix a bug nor add a feature (renaming variable, file structure changes...) | | style | 💄 | Changes that do not affect the meaning of the code (white-space, formatting, semi-colons...) | | test | ✅ | Adding missing tests or correcting existing tests | | perf | ⚡️ | Changes that improves performance | | docs | 📝 | Documentation only changes | | ci | 👷 | Changes to CI config files and scripts | | revert | ⏪ | Reverts a previous commit | | break | 💥 | A breaking change (alias to feat) | | init | 🎉 | Initial commit (alias to feat) |

🔨 Usage (globally installed commitizen)

  1. Install commitizen
# npm
npm install -g commitizen
# yarn
yarn global add commitizen
  1. Initialize cz-cc adaptor
# npm
commitizen init cz-cc --save-dev --save-exact
# yarn
commitizen init cz-cc --yarn --dev --exact
  1. Start commitizen CLI
cz

🔨 Usage (locally installed commitizen)

  1. Install commitizen & cz-cc
# npm
npm install -D commitizen cz-cc
# yarn
yarn add commitizen cz-cc
  1. Add following config to package.json
{
  // ...
  "config": {
    "commitizen": {
      "path": "cz-cc"
    }
  },
  "scripts": {
    // ...
    "commit": "cz"
  }
}
  1. Start commitizen CLI
# npm
npm run commit
# yarn
yarn run commit

⚙️ Configuration

cz-cc fully supports the configurations of cz-conventional-changelog.

Additionally, the native configuration options of cz-zz are as follows:

{
  // ... package.json
  "config": {
    // Default configurations:
    "commitizen": {
      // ...
      // Set to `false` to disable emoji.
      "useEmoji": true,
      // If `true`, whenever commit includes a breaking change, an exclamation mark will be inserted before the colon in commit header.
      // @example feat(core)!: replace algorithm entirely
      "useExclamationMark": false,
      // Maximum amount of characters allowed in the commit header.
      // @note Default to 50/72 formatting style.
      "maxHeaderLength": 50,
      // Maximum amount of characters per line in the commit body and commit footer(s).
      // @note Default to 50/72 formatting style.
      "maxLineLength": 72,
      // Minimal amount of characters allowed for the commit subject.
      "minSubjectLength": 4,
      // Questions to be prompted, remove key to disable that question.
      "questions": ["type", "scope", "subject", "body", "breaking", "issues"],
      // Types to be presented in the default selection list (the list before user enters any search input).
      "defaultTypes": ["feat", "fix", "chore", "refactor", "style", "test", "perf", "docs", "ci", "build", "break"],
      // Scopes to be presented in the selection list.
      // @note Empty array will prompts an input, allows user to enter any string as value of the scope.
      "scopes": [],
      // All available types for user selection.
      // @note The entries that are not part of the `defaultTypes` will be presented when user searches for the entry key.
      "types": {
        // ...
        "init": {
          "emoji": "🎉",
          "value": "feat",
          "description": "Initial commit (alias to feat)"
        },
        "fix": {
          "emoji": "🐛",
          "value": "fix",
          "description": "A bug fix"
        }
        // ...
      }
    }
  }
}

📜 License

Apache License 2.0