meteor / meteor-feature-requests

A tracker for Meteor issues that are requests for new functionality, not bugs.
Other
89 stars 3 forks source link

Better progress bars for updates, installs, and builds #390

Open wreiske opened 4 years ago

wreiske commented 4 years ago

It would be nice if the progress indicators were more verbose, possibly showing a percent complete for tasks that it can predict (such as download sizes), or more general show the stage it is on for things like building (step 1 of 10).

Currently updating to 1.10.1 on a mac is very quick, but on windows, it takes much longer. image

I have gigabit internet, 64gb of ram, Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz, solid-state drives, etc.... it still just sits there on the above screenshot for what feels like forever.

https://www.npmjs.com/package/cli-progress has some pretty awesome progress bars. It would be interesting to include this type of functionality into meteor.

The following progress bar shouldn't be too difficult for things like downloading packages and upgrading meteor. The total bundle size should be known or could be pulled before downloads start via some sort of JSON API with the package information. Once the download starts, it could calculate how many bytes it's transferred so far, rate, etc...

example

For multi-threaded tasks, possibly fetching all packages/dependencies for a project, or maybe even build steps that can be run in parallel, the following may be useful. example 2

StorytellerCZ commented 3 years ago

I have updated the internal dependencies for Meteor 2.0, so adding this should be now a bit more easier.

wreiske commented 3 years ago

Just installed meteor on a fresh computer and it's been sitting at this for over an hour....

image

No CPU, no disk IO, just... sitting there. Not sure how to do an strace on windows to debug it, maybe I'll get ambitious later and look deeper or try with --verbose / --debug if those options exist.