4.2.2 • Published 7 years ago
@kaiser-software/version-bump-prompt v4.2.2
Version-Bump-Prompt

Automate your release process with a single command that can:
- Optionally prompt for the type of version bump (major, minor, revision, beta, etc.)
- Bump the version number in all of your JSON manifests, including:
package.jsonbower.jsoncomponent.json
- Replace version number strings in text files, including:
- config files
- source code
- README files
- license files
- Run your
preversion,version, andpostversionscripts - Commit changes to GIT
- Tag the commit with the version number
- Push the commit to remote
Installation
You can install version-bump-prompt via npm.
npm install -g version-bump-promptUsage
Usage: bump [options]
Options:
-h, --help output usage information
-V, --version output the version number
--major Increase major version
--minor Increase minor version
--patch Increase patch version
--premajor Increase major version, pre-release
--preminor Increase preminor version, pre-release
--prepatch Increase prepatch version, pre-release
--prerelease Increase prerelease version
--prompt Prompt for type of bump (patch, minor, major, premajor, prerelase, etc.)
--preid <name> The identifier for prerelease versions (default is "beta")
--commit [message] Commit changed files to Git (default message is "release vX.X.X")
--tag Tag the commit in Git
--push Push the Git commit
--all Commit/tag/push ALL pending files, not just the ones changed by bump
--grep <filespec...> Files and/or globs to do a text-replace of the old version number with the new one
--lock Update the package-lock.json file as well
Examples:
$ bump --patch
$ bump --major --tag
$ bump --patch --tag --all --grep README.md LICENSE
$ bump --prompt --tag --push --allVersion Scripts
version-bump-prompt will execute your preversion, version, and postversion scripts, just like the npm version command does. If your package.json file contains any or all of these scripts, then they will be executed in the following order:
- The
preversionscript runs before the version is updated (and before the version prompt is shown) - The
versionscript runs after the version is updated, but beforegit commitandgit tag - The
postversionscript runs aftergit commitandgit tag, but beforegit push
Contributing
I welcome any contributions, enhancements, and bug-fixes. File an issue on GitHub and submit a pull request.
Building
To build the project locally on your computer:
Clone this repo
git clone https://github.com/JS-DevTools/version-bump-prompt.gitInstall dependencies
npm installRun the tests
npm test
License
Version-Bump-Prompt is a fork of Version-Bump by Alexey Raspopov (c). Both the original project and this fork are licensed under the MIT License
4.2.2
7 years ago