Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomasevano/yarn-bump
Bash script to bump packages with yarn
https://github.com/thomasevano/yarn-bump
bash bash-script brew bump bumpversion homebrew update yarn
Last synced: 6 days ago
JSON representation
Bash script to bump packages with yarn
- Host: GitHub
- URL: https://github.com/thomasevano/yarn-bump
- Owner: Thomasevano
- Created: 2021-03-19T13:14:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-12T20:09:29.000Z (about 3 years ago)
- Last Synced: 2024-11-01T23:42:34.502Z (about 2 months ago)
- Topics: bash, bash-script, brew, bump, bumpversion, homebrew, update, yarn
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YARN-BUMP
This is a fork of [npm-bump](https://github.com/vincenthardouin/npm-bump). I find it very useful so as a yarn user on some project i wanted to have the same tool.
yarn-bump is a Bash Script to bump package version with [yarn version 1](https://github.com/yarnpkg/yarn).
It exists because task of update packages are frequent and boring.
This script bump versions of packages that have no tests issues.## Installation
### With [Homebrew](https://brew.sh/)
On Mas OS, you can install yarn-bump via [Homebrew](https://brew.sh/):
```bash
brew tap thomasevano/yarn-bump
brew install yarn-bump
```### With make
```bash
make install
```### Classic method
1. Clone repository
```bash
git clone https://github.com/Thomasevano/yarn-bump.git
```2. Go in directory
```bash
cd yarn-bump
```3. Add permission
```bash
chmod 777 yarn-bump
```4. Create symlink
```bash
ln -sf ${PWD}/yarn-bump /usr/local/bin
```## Usage
On directory where you have `package.json` and `yarn.lock`
Run :```bash
yarn-bump
```:warning: If you use Jest put `--watchAll=false` a the end of test script line in `package.json`, so it doesn't enter in interactive mode
And wait :hourglass: with :coffee:
### Optional arguments
```bash
-h, --help show this help message and exit
-m, --markdown display updated packages in markdown table
-e, --exclude exclude package name seprated by a comma (e.g -e lodash,mocha)
-nt, --no-test does not run test command when update package
```
```## Features
- Script available globally
- Verify outdated package
- Use `yarn add` instead of `yarn upgrade`
- Try to install latest version of each package
- Run `yarn test` after each `yarn add` to verify exit code
- Create bump commit for each package
- Show updated packages and packages not updated at the end