snapver

Snapshot / canary javascript project lifecicle management

Usage no npm install needed!

<script type="module">
  import snapver from 'https://cdn.skypack.dev/snapver';
</script>

README

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