1.0.2 • Published 2 years ago

changelog-machine v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Getting started

The tool can be executed with this command:

npx changelog-machine

It will generate a file called CHANGELOG.md in the root directory of the project.

Configuration

The generation of the changelog can be configured via a config file.

npx changelog-machine --config changelog.config.json

Command overview

COMMANDALIASDESCRIPTION
--config-cPath to the configuration file
--version-vPrint version
--help-hPrint command instructions

Configuration file

The configuration file can be configured like this:

{
  "title": "Changelog",
  "description": "Some description text",
  "repositoryUrl": "https://github.com/PKief/vscode-material-icon-theme",
  "blacklistPattern": "Release|^\\d+\\.\\d+\\.\\d+$",
  "filePath": "CHANGELOG.md"
}

More detailed description of the config:

CONFIGDESCRIPTIONDEFAULT
titleTitle of the changelog"Changelog"
descriptionDescription under the title"All notable changes to this project will be documented in this file. Dates are displayed in UTC."
filePathPath of the output file"CHANGELOG.md"
repositoryUrlLinks to the repository for further information
blacklistPatternRegex to remove commit messages

Example output

The following commit summary is printed into the CHANGELOG.md file and can look like this:

v4.12.1

February 5, 2022

Programmatic use

The tool can be imported as module into existing JavaScript or TypeScript code. Therefor it is necessary to install it via npm or yarn:

NPM:

npm install --save-dev changelog-machine

Yarn:

yarn add --dev changelog-machine

The module can be imported like this:

import { printMarkdown } from 'changelog-machine';

// usage with default config
printMarkdown();

// usage with customizations
printMarkdown({
  filePath: './changelog/CHANGES.md',
  description: 'List of changes',
  title: 'All releases',
  blacklistPattern: '^Release', // excludes all commits that start with "Release"
  repositoryUrl: 'https://github.com/PKief/vscode-material-icon-theme',
});
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago