Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Clean up CLI output a bit. #3654

Merged
merged 2 commits into from
Aug 7, 2020
Merged

Clean up CLI output a bit. #3654

merged 2 commits into from
Aug 7, 2020

Conversation

robdodson
Copy link
Contributor

This improves #3605 a little bit but doesn't fully fix the problem.

I think after Eleventy's afterBuild events ship in 1.0 we should be able to use https://www.npmjs.com/package/cli-spinner to show when a build is in progress or finished.

@robdodson robdodson requested a review from a team as a code owner August 7, 2020 01:53
@googlebot googlebot added the cla: yes Contributor has signed the CLA label Aug 7, 2020
@@ -33,11 +30,6 @@ let memo;
* @see {@link https://github.com/11ty/eleventy/issues/399}
*/
const memoize = (collection) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The warning that was previously here was essentially noise (it logged every time you edited a file in dev mode) so I just removed it.

.eleventy.js Outdated
@@ -91,6 +92,7 @@ const {
} = require(`./${transformsDir}/service-worker-partials`);

module.exports = function (config) {
console.log(`${chalk.black.bgGreen('Eleventy is building, please wait…')}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only happens once, right?

Also, super nit, the ${ doesn't really help here, we could just remove the wrapping.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, not sure if you're a fan, but we use fancy-log in a few place which includes timestamp on the left. We could use it here too.

Copy link
Contributor Author

@robdodson robdodson Aug 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's why it doesn't help a ton. It happens when you first run npm run dev but if you subsequently edit a file it won't log it again.

Also, super nit, the ${ doesn't really help here, we could just remove the wrapping.

oh right, I was combining strings earlier and then put it all into the same message. I'll fix it.

@netlify
Copy link

netlify bot commented Aug 7, 2020

Deploy preview for web-dev-staging ready!

Built with commit 9804445

https://deploy-preview-3654--web-dev-staging.netlify.app

@robdodson robdodson merged commit 220a442 into master Aug 7, 2020
@robdodson robdodson deleted the bug/improve-cli-output branch August 7, 2020 01:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Contributor has signed the CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants