2.0.4 • Published 7 years ago

logchange v2.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

logchange

Automatically generate a new version and changelog by parsing angular style git commit messages.

Installation

Global

$ npm install -g logchange

Local

$ npm install logchange

Add logchange as a script to your package.json

{
    ...
    "scripts": {
        ...
        "logchange": "logchange"
    }
}

Commit messages mapping to versions

Breaking changes

feat(Scope): message

BREAKING CHANGE:
Some breaking change here.

This will increment the MAJOR version.

Features

feat(Scope): message

This will increment the MINOR version.

Fixes

fix(Scope): message

This will increment the PATCH version.

Usage

  Usage: version [options]

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -j, --json             just output a version as json
    -s, --stdout           output to stdout instead of file
    -f, --format <format>  format to output in [markdown, html]
    -o, --file <file>      changelog file to read/write

Process

  1. Write your code
  2. Commit your code using angular style commits
  3. Test your code
  4. Run logchange (globally) / Run npm run logchange (locally) / Run yarn logchange (locally/yarn)
  5. Commit your package.json and CHANGELOG.md with a chore(Version): updating version and changelog message. - message doesn't really matter - as long as its a chore otherwise, it may increment your version the next time you run logchange

TODO

  • fix issue with multiple version being bumped per execution.
  • rewrite to support testing/coverage
  • rework options to be a bit more intuitive
  • add logchange scopes to iterate over the git log and return all the scopes already used
  • create contributors template, automatically increment number of commits against each contributor
  • add logchange current to output the current version
  • add logchange next to output what the next version will be
  • format the scopes to all start with a capital letter, regardless of what case was used in the commit
2.0.4

7 years ago

2.0.2

7 years ago

2.0.3

7 years ago

2.0.1

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.0

8 years ago