README
snapver - Snapshot your code
Introducing the snapshot project lifecycle managing for easy preintegrations and canary channels
Installation
npm install -g snapver
Usage
Start a patch version. Can be patch
, minor
, major
$ snapver start patch
Make a release in git
$ snapver release
Help please!
$ snapver --help
API
var snapver = require('snapver');
snapver({
branch: 'release' //give additional config
}).start('patch', function(err, version) {
console.log('New Version %s started', version);
});
//Dual API, node callbacks and promises
//It will use `.snaprc` [commented] json file in your working directory
snapver().release().then(function(version) {
console.log('Version %s released', version);
});