2.0.0 • Published 3 years ago
@macchie7/easytag v2.0.0
easytag
easytag simplifies Versioning & Tagging when you need to deliver multiple versioning depending on your GIT branch.
While using easytag tagging through npx easytag [patch|minor|major] commands will trigger a custom procedures that will sequentially perform:
- update of your
package.jsonversion depending on the release type (patch,minor,major) - add
package.jsonto GIT changes, tag & create commit with tag name in the message (see below for default naming convention) pushboth your changes and your tags (git push && git push --tags)
Default Naming Convention
Master/Main Branch
master=>vX.Y.Zmain=>vX.Y.Z
Other Branches
feauture/example=>feauture-example-vX.Y.Ztest=>test-vX.Y.Zmybranch=>mybranch-vX.Y.Z
Setup
Inside your NPM project execute:
$ npx @macchie7/easytag --initeasytag replaces your preversion and preversion script inside package.json to be able to intercept and disable them.
Usage
easytag relicates npm version * commands:
npx easytag [ patch | minor | major ]
Parameters
Edit your config inside package.json to add extra parameters:
Example
{
"config": {
"easytag": {
// disable push after tagging
"noPush": true,
// master/main branch format (default: v1.2.3)
"masterFormat": "{{version}}",
// others branch format (default: branchname-v1.2.3)
"branchFormat": "{{branchName}}-{{version}}"
}
...
}
...
}