1.7.0 • Published 3 years ago

changelog-gitter v1.7.0

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

changelog-gitter

Automated changelog generator for all projects including git add and commit. Note: Your project doesn't have to be Node, to use this tool. You can use it with all projects.

Good to know

changelog-gitter takes care of your "git add ." and "git commit". You can confirm this by checking your git logs.

Pre-requisites

  • NPM - Make sure you have NPM installed
  • Git - Make sure you have Git installed

Installation

npm init

(Press Enter until all the defaults are accepted. The package.json file should be generate as a result).

Then, install changelog-gitter

npm i changelog-gitter --save

Usage

  1. Create a change.js file in your project root

touch change.js

For windows: Create the file manual or use the following COMMAND:

echo > change.js

  1. Paste the following onto change.js file

require('changelog-gitter')

  1. To use changelog-gitter you should first initialize Git

git init

To test if the installation was successful, do this:

node change log

If the result is as follows then it was successful:

changelog-gitter successful installation image

If the above image didn't show, click the one below (https://github.com/cmigayi/changelog-gitter/blob/master/changeloggittersuccessfulInstallation.PNG)

The commands you will need:

  1. You should know the following arguments:
  • node change log

    Use this after posting atleast one change. It will generate the CHANGELOG.md file in your project

    node change log

  • node change VERSION_TYPE "COMMENT"

    This is the format you use to post changes to the changelog file.

    i. VERSION_TYPE

    • Patch: Applicable when making bugs changes or updates. It will increment version at x (version: 1.0.x)
    • Minor: Applicable when making minor changes in the project. It will increment version at y (version: 1.y.0)
    • Major: Applicable when making major changes in the project. It will increment version at z (version: z.0.0)

      Syntax

      node change patch added "My first project patch change"

      node change minor added "My first project minor change"

      node change major added "My first project major change"

      ii. CHANGE_TYPE They preceed documentation comments.

    • Added: Comment on any added feature

      node change patch added "new feature added"

    • Changed: Comment on any change made in the project code

      node change patch changed "Feature x changed to y"

    • Depracted: Comment on any deprecated feature

      node change patch deprecated "Feature x is no longer in use for v2.2.0"

    • Removed: Comment on any removed feature

      node change patch removed "x and y has been removed"

    • Fixed: Comment on any fixed feature

      node change patch fixed "The lag on login has been fixed"

    • Security: Comment on any security feature created, updated or added

      node change patch security "X was added in the db transactions to secure the data"

      iii. "COMMENT"

      This is the documentation comment. It should always be in double-qoutes.

    "alike" argument

    This argument is used when you want to post changes to the same version.

    Syntax:

    node change patch alike added "new change has been made"

1.5.5

3 years ago

1.5.4

3 years ago

1.5.3

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.5.2

3 years ago

1.6.0

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.5.7

3 years ago

1.5.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago