1.3.2 • Published 27 days ago

conventional-logs v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
27 days ago

Conventional-Logs

This package is a CLI utility tool for generating a CHANGELOG using Conventional Commits specification as a basis. By writing clean commits, it allows smaller projects to document changes between versions and update the Semantic Version accordingly.

Installing Conventional-Logs

This package can be installed locally to devDependencies:

npm i -D conventional-logs

The package can be executed through an package.json script, or directly in the terminal:

"scripts": {
    "updateChangelog": "npx cologs"
}

How it Works

  1. A user merge --squash a development branch into the main branch, followed by a commit that matches Conventional Commit specifications
  2. Assuming the main branch is ready to be released, the user runs cologs to parse main branch commits to then add to the CHANGELOG.md
  3. cologs will automatically bump the package.json version appropriately and commit the changes to CHANGELOG.md
  4. The CHANGELOG.md commit will be given a git tag of v<version_number> for easy reference

Initializing CHANGELOG.md and First Release

This will create the CHANGELOG.md file for the first release of the project. Conventional-Logs will use the package.json version declared by the user as the intial release.

npm cologs --first-release
1.3.2

27 days ago

1.2.2

9 months ago

1.1.2

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago