Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexkuz/script-progress

Estimate script execution time
https://github.com/alexkuz/script-progress

cli eta npm progress yarn

Last synced: about 2 months ago
JSON representation

Estimate script execution time

Awesome Lists containing this project

README

        

# script-progress

A simple tool for heavy NPM/Yarn scripts that run for a long but roughly identical time. It's not intended to be precise but gives you some sense of execution time.

### Installation

```sh
yarn add script-progress
```
or
```sh
npm i script-progress
```

### Example Usage

Change your build script in `package.json`:
```diff
- "build": "react-scripts build",
+ "build-js": "react-scripts build",
+ "build": "script-progress yarn build-js",
```
or just
```diff
- "build": "react-scripts build",
+ "build": "script-progress react-scripts build",
```

The script will show a progress bar on the second and subsequent runs.