script-progressEstimate script execution time

联合创作 · 2023-09-30 08:29

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.

浏览 6
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报