1.0.0 • Published 2 years ago

versincremo v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Description

This package was created to simplify versioning process in local development. It does the next things:

  • properly updates package version (1) using specific command (major, minor, patch)
  • saves version changes to the package.json file
  • commits the package.json file (2) and optionally crate new git tag related to new version

1) https://docs.npmjs.com/about-semantic-versioning 2) https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716

Usage

Install package

npm i --save-dev versincremo 

Add configuration at the root of your project package.json, additionally specify usage of versincremo at the scripts section

{
  "version": "1.0.0",
  "name": "yourPackageName",
  "scripts": {
    "patch": "node node_modules/versincremo patch",
    "minor": "node node_modules/versincremo minor",
    "major": "node node_modules/versincremo major"
  },
  "versincremo": {
    "tag": true, 
    "scope": ""
  }
}

Example of patch with optional subject:

npm run patch 'fixed something'

Example of minor update with optional subject:

npm run minor 'release'

Example of major update:

npm run major