Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frangio/fgbg
:milky_way: A lightweight tool to run multiple commands concurrently.
https://github.com/frangio/fgbg
Last synced: about 1 month ago
JSON representation
:milky_way: A lightweight tool to run multiple commands concurrently.
- Host: GitHub
- URL: https://github.com/frangio/fgbg
- Owner: frangio
- Created: 2020-01-18T21:25:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-10T00:19:52.000Z (almost 3 years ago)
- Last Synced: 2024-10-16T10:21:25.465Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fgbg
![npm](https://img.shields.io/npm/v/fgbg)
**`fgbg` is a lightweight tool that can run multiple commands concurrently**,
keeping one of them in the foreground and the rest silenced in the background.It was built to solve the problem of running tests in watch mode for a
TypeScript project. With `fgbg` you can have the test runner watch for changes
in `*.js` files while you compile your `*.ts` sources into JavaScript in the
background.## Installation
```
npm install --save-dev fgbg
```## Example Usage
From the command line:
```
npx fgbg 'ava --watch' 'tsc --watch'
```Or as a script in your `package.json`:
```diff
"scripts": {
"test": "ava",
+ "test:watch": "fgbg 'ava --watch' 'tsc --watch'
},
``````
npm run test:watch
```## Additional arguments
Forward additional arguments to the foreground command using `--` as a separator.
```
npx fgbg 'ava --watch' 'tsc --watch' -- src/foo.test.ts
```