root-systems / create-dogstack-app

create a new dogstack app and scaffold files + folders
5 stars 2 forks source link

show progress of packages installing during createApp? #10

Open iainkirkpatrick opened 6 years ago

iainkirkpatrick commented 6 years ago

not sure how this can be done though...

danalexilewis commented 6 years ago

I assume you have it running on another process - is there anyway you can have it tell you when it’s done. Ie not it’s progress - but rather just final state. Pass a function to be called as a post hook to the install. And it tell your primary process it’s done.

Than you can just have a spinner on your primary process/terminal that disappears when it’s told it’s done. You could also put an expected time in brackets :)

In saying that you may be able to capture errors in a post nom install function as well.

iainkirkpatrick commented 6 years ago

at the moment we see a log when the process begins 'Installing packages...' and then there are some other placeholder logs when it's done. so yes we could have a spinner!

i'm wondering if there's a way to actually show a progress bar as npm does when you run npm i... kinda trivial i guess but would be cool 🎉

danalexilewis commented 6 years ago

Maybe just don’t run it on another process if possible?