Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexkuz/script-progress
Estimate script execution time
https://github.com/alexkuz/script-progress
cli eta npm progress yarn
Last synced: about 1 month ago
JSON representation
Estimate script execution time
- Host: GitHub
- URL: https://github.com/alexkuz/script-progress
- Owner: alexkuz
- License: mit
- Created: 2018-07-07T10:26:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-04T15:18:53.000Z (almost 6 years ago)
- Last Synced: 2024-11-20T07:35:40.448Z (about 2 months ago)
- Topics: cli, eta, npm, progress, yarn
- Language: JavaScript
- Size: 7.81 KB
- Stars: 177
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.