vik
v0.4.0
Published
CLI Semver autoincrement with major, minor, and patch.
Downloads
110
Maintainers
Readme
Vik
Using Semver to increment your package.json
(and bower.json
, component.json
) npm version based on the major, minor, patch. Your cwd
can be a child of the directory where your JSON config files reside – Vik will recursively find them thanks to ParentPath!
Install: npm install vik -g
— with -g
(global) npm will automatically add vik
to your $PATH
.
Commands
- Increment major:
vik major
orvik major+
; - Increment minor:
vik minor
orvik minor+
; - Increment patch:
vik patch
orvik patch+
;
You can also decrement the versions with minus:
- Decrement major:
vik major-
; - Decrement minor:
vik minor-
; - Decrement patch:
vik patch-
;
Options
-t
/--tags
– Git tag the repository with the version;-p
/--push
– Push the Git tag to the repository;
Example: vik minor -tp
.