Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincenthardouin/npm-bump
npm-bump is a Bash Script for bump npm version.
https://github.com/vincenthardouin/npm-bump
bumpversion homebrew npm update
Last synced: about 1 month ago
JSON representation
npm-bump is a Bash Script for bump npm version.
- Host: GitHub
- URL: https://github.com/vincenthardouin/npm-bump
- Owner: VincentHardouin
- Created: 2020-10-24T09:32:09.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T02:35:52.000Z (9 months ago)
- Last Synced: 2024-04-22T15:21:32.503Z (8 months ago)
- Topics: bumpversion, homebrew, npm, update
- Language: Shell
- Homepage:
- Size: 34.2 KB
- Stars: 13
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NPM-BUMP
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.https://user-images.githubusercontent.com/26384707/163569189-ea8f4706-76e4-4712-a87d-25d087410c10.mp4
## Installation
### With [Homebrew](https://brew.sh/)
On OS X, you can install npm-bump via [Homebrew](https://brew.sh/):
```bash
brew tap vincenthardouin/npm-bump
brew install npm-bump
```### With make
```bash
make install
```### Classic method
1. Clone repository
```bash
git clone [email protected]:VincentHardouin/npm-bump.git
```2. Go in directory
```bash
cd npm-bump
```3. Add permission
```bash
chmod 777 npm-bump
```4. Create symlink
```bash
ln -sf ${PWD}/npm-bump /usr/local/bin
```## Usage
On directory who have `package.json` and `package-lock.json`
Run :
```bash
npm-bump
```
And wait :hourglass: with :coffee:### Optional arguments
```bash
-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"
```## Features
- Script available globally
- Verify outdated package
- Use `npm install` instead of `npm update`
- Try to install latest version of each package, or try step-by-step with `--step-by-step` option
- Run `npm test` after each `npm 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