np icon indicating copy to clipboard operation
np copied to clipboard

Clear output on successful publish

Open sindresorhus opened this issue 8 years ago • 4 comments

The checklist is useful during publish, but when it's successful we only care about the last message. So would be nice to focus on that.

This is only regarding when publishing is done and the final success message is displayed.

Current

Publish a new version of np (2.9.0)

? Select semver increment or specify new version minor (2.10.0)
? Will bump from 2.9.0 to 2.10.0. Continue? Yes
 ✔ Prerequisite check
 ✔ Git
 ✔ Cleanup
 ✔ Installing dependencies
 ✔ Running tests
 ✔ Bumping version
 ✔ Publishing package
 ✔ Pushing tags

 np 2.10.0 published 🎉

Proposed

np 2.10.0 published 🎉

Thoughts?

sindresorhus avatar Nov 04 '16 09:11 sindresorhus

I agree. It makes sense to show the progress of publishing the module, but after that, that information is quite useless as it's all green.

It would make sense to keep the output if some tasks are skipped, but I don't believe that's the case here.

SamVerschueren avatar Nov 04 '16 09:11 SamVerschueren

that information is quite useless as it's all green.

Indeed. I am up for it too.

gillchristian avatar Mar 29 '17 11:03 gillchristian

Go for it :)

sindresorhus avatar Mar 31 '17 17:03 sindresorhus

It will be possible with the next release of Listr by just setting clearOutput to true right here.

This off course only clears the Listr output and not the Inquirer.js. But I guess we can manually clear those 4 extra lines with eraseLines.

Will do a PR when the next Listr release lands.

SamVerschueren avatar Apr 07 '17 19:04 SamVerschueren