0.2.0 • Published 7 years ago

upvn v0.2.0

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

upvn

====

This library is tool to update version info in the package.json with current version info in the NPM.
Mainly this library is used to update npm version before publish.

Purpose

Update version info before publish library to NPM.

Usage

This library have two ways to use.
Command line mode and library mode. Command line mode is made for purpose of CI.
Library mode is made to update version data in program.

Command line

In this mode, latest version is set from NPM information data.
And next, update package.json with updated version data.

$upvn [parameter]

In the Program

const upvn = require('upvn');

const test = 'v0.1.2-beta4';

upvn.update(test, 'major');     // -> v1.0.0
upvn.update(test, 'minor');     // -> v0.2.0
upvn.update(test, 'patch');     // -> v0.1.3
upvn.update(test, 'v1.1.1');    // -> v1.1.1
upvn.update(test, 'premajor');  // -> v1.0.0-beta0
upvn.update(test, 'preminor');  // -> v0.2.0-beta0
upvn.update(test, 'prepatch');  // -> v0.1.3-beta0
upvn.update(test, 'prerelease');// -> v0.1.2-beta5

About parameter

parameterdescriptionversion info in NPMsample paramresult
<newversion>version info. X.Y.Z ... format. default value is override with this.1.2.33.4.53.4.5
majorincrement major version1.2.3major2.0.0
minorincrement minor version1.2.3minor1.3.0
patchincrement patch version1.2.3patch1.2.4
premajorincrement major version and set release info1.2.3premajor2.0.0-0
preminorincrement minor version and set release info1.2.3preminor1.3.0-0
prepatchincrement patch version and set release info1.2.3prepatch1.2.4-0
prereleaseincrement release version1.2.3-0prerelease1.2.3-1

License

(The ISC License)

Copyright 2017 Shunsuke <qfoori@gmail.com>

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago