Np: Clear output on successful publish

Created on 4 Nov 2016  ยท  4Comments  ยท  Source: sindresorhus/np

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?

enhancement help wanted

Most helpful comment

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.

All 4 comments

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.

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

Indeed. I am up for it too.

Go for it :)

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jescalan picture jescalan  ยท  3Comments

janpio picture janpio  ยท  6Comments

gillesdemey picture gillesdemey  ยท  3Comments

papb picture papb  ยท  6Comments

ProfessorManhattan picture ProfessorManhattan  ยท  4Comments