/snapver

Snapshot / canary project lifecycle management

Primary LanguageJavaScriptMIT LicenseMIT

snapver - Snapshot your code

npm version Build Status Coverage Status Dependency Status devDependency Status

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);
});