conventional-changelog

Generate a changelog from git metadata, using the AngularJS commit conventions

Please update conventional-changelog to >1.0.0. If you are running the cli, use conventional-changelog-cli
Last updated 10 years ago by stevemao .
BSD · Repository · Bugs · Original npm
$ cnpm install conventional-changelog 
SYNC missed versions from official npm registry.

NPM version Build Status Dependency Status Coverage Status

Generate a changelog from git metadata

Usage

You most likely only need to use this module if you're building a library that provides an abstraction on top of conventional commits, See Getting started if you're an end-user.

$ npm install --save conventional-changelog
var conventionalChangelog = require('conventional-changelog');

conventionalChangelog({
  preset: 'angular'
})
  .pipe(process.stdout); // or any writable stream

Or if you want to use your own custom preset:

var conventionalChangelog = require('conventional-changelog');

var config = require('@org/conventional-changelog-custom-preset');
conventionalChangelog({config})
  .pipe(process.stdout); // or any writable stream

API

conventionalChangelog([options, [context, [gitRawCommitsOpts, [parserOpts, [writerOpts]]]]])

Returns a readable stream.

options

See the conventional-changelog-core docs. The API is the same with the following changes or additions:

preset

Type: string Possible values: 'angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint'

It's recommended to use a preset so you don't have to define everything yourself. Presets are names of built-in config.

A scoped preset package such as @scope/conventional-changelog-custom-preset can be used by passing @scope/custom-preset to this option.

NOTE: options.config will be overwritten by the values of preset. You should use either preset or config, but not both.

Notes for parent modules

License

MIT

Current Tags

  • 3.1.25                                ...           latest (4 years ago)
  • 3.1.24                                ...           next (5 years ago)

6 Versions

  • 3.1.25                                ...           4 years ago
  • 3.1.15                                ...           6 years ago
  • 3.1.24                                ...           5 years ago
  • 0.0.17 [deprecated]           ...           10 years ago
  • 3.1.21                                ...           5 years ago
  • 1.1.24                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org