2.0.1 • Published 7 years ago

gitbook-bumper v2.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

gitbook-bumper

Bump your Node modules using GitBook's convention for SemVer!

Installation

This module just contains one script bin/gitbook-bumper.

Global

You can install this script globally using:

npm install -g gitbook-bumper

Local

You can also install it locally to your project:

npm install --save-dev gitbook-bumper

It will be accessible from the command line if you added node_modules to your path.

Example

Bump X.0.0

$ gitbook-bumper -c -p minor

Bump 1.X.0

$ gitbook-bumper -c -p minor

Bump 1.0.X

$ gitbook-bumper -c -p patch

With a custom package.json directory

$ gitbook-bumper -d ./modules -c -p patch

Here is the preview of an interaction with the script:

$ gitbook-bumper -c -p minor

? Bump from 1.5.6 to 1.6.0 ? Yes
Writing version 1.6.0 to package.json...
Committing "Bump version to 1.6.0 :rocket:"...
Tagging...
Pushing...
Pushing tags...
Done.

Usage

  Usage: gitbook-bumper [options] <level> [prerelease-id]

	 Where level is one of major, minor, patch, premajor, preminor, prepatch, prerelease

  Options:

    -h, --help        output usage information
    -V, --version     output the version number
    -d, --dir <path>  directory of the Node module (default './')
    --no-confirm      do not ask for confirmation
    -c, --commit      make a commit and tag with version
    -p, --push        push commit and tag to remote
2.0.1

7 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago