2.0.1 • Published 9 years ago

npmrel v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

npmrel

npm version npm downloads dependency status

Release NPM modules.

Usage: npmrel [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease] [options]

Options:

  -h, --help           output usage information
  -V, --version        output the version number
  -m, --message [msg]  The commit message to use.
                       If unspecified, will default to "Release vx.x.x".

installation

$ npm install -g npmrel

implementation

  • Bumps the package.json version
  • Commits all changes with a custom or default message ("Release vx.x.x")
  • Tags the commit as "vx.x.x"
  • Pushes the commit
  • Pushes the tag
  • Publishes to NPM

usage

cli

$ cat package.json | grep version
"version": "1.0.0",
$ npmrel major -m "This is release v%s"
$ git log -1 --format="%s"
This is release v2.0.0
$ npmrel patch
$ git log -1 --format="%s"
Release v2.0.1
$ npmrel v2.1.0 -m "Releasing version %s"
$ git log -1 --format="%s"
Releasing version 2.1.0

api

npmrel(newVersion, commitMessage)

Arguments

  • newVersion - The new version or release type to move to.
  • commitMessage - Optional The git commit message to use. If omitted, defaults to Release v%s where %s is the incremented version.

Examples

const npmrel = require('npmrel');

// These are api versions of the cli examples above.
npmrel('major', 'This is release v%s');
npmrel('patch');
npmrel('v2.1.0', 'Releasing version %s');

license

MIT

2.0.1

9 years ago

2.0.0

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

11 years ago

1.0.2

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago