2.2.1 • Published 5 years ago
version-pong v2.2.1
Version-Pong
Publish npm package and automated bump version in the package.json based on Standard Version.
Version Pong Abilities
4 Steps will be performed in 1 Command!
- Update Peer Dependencies versions
- Tagging Version and Generate Auto Changelog
- Publish to npm registry
- Push all release change to target branch
Installation
As Global CLI
$ yarn global add version-pongLocal Project
$ yarn add -D version-pongIn package.json
{
"scripts": {
"release": "version-pong"
},
"version-pong": {
"method": "yarn build && yarn publish"
}
}Settings
- method - The method that perform for publishing library
What is watchDependencies?
If your package need to define peerDependencies, add target peer dependency package name to watchDependencies
add library name to watchDependencies.
example
In package.json
{
"devDependencies": {
"jest": "^26.0.1",
},
"watchDependencies": ["jest"]
}Once version-pong is run with published command, it automatically generates peerDependencies.
example
In package.json
{
"devDependencies": {
"jest": "^26.0.1",
},
"watchDependencies": ["jest"],
"peerDependencies": {
"jest": ">=26.0.1",
}
}Settings
- watchDependencies - List of
devDependenciesto be convert topeerDependencies. - peerDependencies - Auto Generated Dependencies in
>=xx.xx.xxversion format with watchDependencies by version-pong.
Usage
Publish Library
$ version-pong <tag>example
$ version-pong minorPublish with git tagPrefix
$ version-pong <tag> -t <tagPrefix>example
$ version-pong minor -t eslintTag
Production Release (Master Branch Only)
- Major - Breaking Change Release
- Minor - Non-Breaking Change Release
- Patch - Bug fix Release
Development Release (Dev Branch Only)
- Beta - Development Release
Option
- -t , --tagPrefix : git tag prefix
- ex. eslint@1.1.1 (tagPrefix is eslint)