npm-bump is a Bash Script for bump npm version.
It exists because tasks of update packages are frequent and boring. This script bump versions of packages that have no tests issues.
npm-bump-demo.mp4
With Homebrew
On OS X, you can install npm-bump via Homebrew:
brew tap vincenthardouin/npm-bump
brew install npm-bump
make install
- Clone repository
git clone [email protected]:VincentHardouin/npm-bump.git
- Go in directory
cd npm-bump
- Add permission
chmod 777 npm-bump
- Create symlink
ln -sf ${PWD}/npm-bump /usr/local/bin
On directory who have package.json
and package-lock.json
Run :
npm-bump
And wait ⌛ with ☕
-h, --help show this help message and exit
-c, --command run custom command after npm install and rollback install when given command exit code is > 0, not works with no-test option
-e, --exclude exclude package name seprated by a comma (e.g -e lodash,mocha)
-m, --markdown display updated packages in markdown table
-nt, --no-test does not run test command when update package
-sbs, --step-by-step test bump version step by step"
- Script available globally
- Verify outdated package
- Use
npm install
instead ofnpm update
- Try to install latest version of each package, or try step-by-step with
--step-by-step
option - Run
npm test
after eachnpm install
to verify exit code or given custom command with--command
option - Create bump commit for each package
- Show updated packages and packages not updated at the end