Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

happy-conventional-commit

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

happy-conventional-commit

Tools for getting a happy conventional commit setup.

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Happy Conventional Commit Logo

About

Happy Conventional Commit contains CLI scripts for working with Conventional Commits.

Installation

npm install --save-dev happy-conventional-commit

Tools

Usage

Current Version

happy-current-version

Next Version

happy-next-version

Release Notes

Basic Usage

happy-release-notes

Pipe to file

happy-release-notes > release-notes.md

Arguments

ArgumentDescriptionDefault
--from={version}The version to generate release notes from.Latest version
--to={version}The version to generate release notes to.
--versionHeaderSet to show version header. Useful when generating release notes for multiple releases.
--author={githubUsername | nameAndEmail}Set to show author for each entry.

Validate Commit Message

Basic Usage

happy-validate-commit-message --commitFile={commitFile}

With Husky

  1. Install Husky
  2. Create the file ".husky/commit-msg"
  3. Add the following to the file ".husky/commit-msg":
    #!/bin/sh
    . "$(dirname "$0")/_/husky.sh"
    node ./node_modules/.bin/happy-validate-commit-message --commitFile=$1
    

Arguments

ArgumentDescriptionDefault
--commitFile={commitFile}The file containing the commit message.

Lint Changed Files

Basic Usage

happy-lint-changed-files

With Husky

  1. Install Husky
  2. Create the file ".husky/pre-commit"
  3. Add the following to the file ".husky/pre-commit":
    #!/bin/sh
    . "$(dirname "$0")/_/husky.sh"
    node ./node_modules/.bin/happy-lint-changed
    

Configuration

Configurations are defined in package.json.

Rules
{
  "happyLintChanged": {
    "rules": [
      {
        "command": "eslint --ignore-path .lintignore --max-warnings 0 --fix",
        "regex": "^[a-zA-Z0-9_].*\\.(cjs|mjs|js|jsx|ts|tsx|json)$"
      }
    ]
  }
}

The rules defaults to the same as in the example above.

Keywords

FAQs

Package last updated on 27 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc