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

@mixmaxhq/semantic-commitlint

v1.0.3

Published

Fills the gap between semantic-release and commitlint

Downloads

938

Readme

Semantic Commitlint

📦🚀 + 📓 A continuous integration build tool to ensure all new commits meet your commit message format!

Problem

Solution

  • semantic-commitlint fills the gap by providing a hook for semantic-release that asks commitlint to lint new commit messages that have not been included in a previous release

Features

  • Run in CI on all branches to ensure that only builds with valid commit messages pass
  • Wraps semantic-release and commitlint for an easy install
  • No config

Install

npm install semantic-commitlint --save-dev

Setup

Add the following to your semantic-release release block (e.g. in the release field of your package.json)

{
  "verifyRelease": ["semantic-commitlint"]
}

Setup semantic-release authentication for CI

semantic-commitlint currently only supports @commitlint/config-conventional - please open a PR if you need support for other configurations!

Usage

Simply run semantic-release as normal as part of your CI build process

Skip commits

If there are unreleased commits that shouldn't fail a build, then add them to the SEMANTIC_COMMITLINT_SKIP environment variable as comma-separated GIT SHAs. This should be uncommon, provided your development workflow lints the commits before they get added to the release branch.

// This is the package.json of the package you're trying to publish.
// Just add the SEMANTIC_COMMITLINT_SKIP prefix to the semantic-release command!
{
  "scripts": {
    "semantic-release": "SEMANTIC_COMMITLINT_SKIP=a1be371 semantic-release"
  }
}

External config

This project just ties together some functionality from two external projects. For all other config options make sure to read through the docs.

Issues

Not all features implemented in semantic-release and commitlint are currently available when using semantic-commtlint. If you have a suggestion, please open an issue. Thanks!

License

semantic-commitlint is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository.