31
GitHub - alexkuz/script-progress: Estimate script execution time
source link: https://github.com/alexkuz/script-progress
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
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
yarn add script-progress
or
npm i script-progress
Example Usage
Change your build script in package.json
:
- "build": "react-scripts build", + "build-js": "react-scripts build", + "build": "script-progress yarn build-js",
or just
- "build": "react-scripts build", + "build": "script-progress react-scripts build",
The script will show a progress bar on the second and subsequent runs.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK