You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Run Prettier as part of the blog post script #6041
You're not expected. Just saying that you can run that command to test/view the blog post locally :)
I think in this case the rendered post wouldn't look different. Prettier only asked to remove unnecessary escapes.
Youre absolutely right. Sorry my prettier comment was not related to running locally to preview the post.
Just wanted to say that previewing a new blog post to verify it looks as expected is nice. But I suppose Vercel branch deployments already do that for you, so disregard that!
Note that Git Hooks and npm install scripts are disabled globally on my computer for security reasons.
Oh, that makes sense. Right, then @bmuenzenmeyer might make sense to invoke prettier/eslint CLI directly from the blog script. And then write the resulting content to the file.
Activity
[-]Run Prettier as part of the script that generates them[/-][+]Run Prettier as part of the blog post script[/+]ovflowd commentedon Oct 24, 2023
I feel that this is a mismanagement of expectations: #6040 (comment)
As if they simply run
npm installthat would automatically setup their Git Hooks. So I assume they just didn't do that.@targos have you at least run
npm installandnpm run serveto test locally that the blog post was created and rendered as expected?targos commentedon Oct 24, 2023
I did run
npm install. Notnpm run serve. I respectfully ask that we are not expected to do that. The release process is already complicated enough.ovflowd commentedon Oct 24, 2023
You're not expected. Just saying that you can run that command to test/view the blog post locally :)
That's odd, because Husky should be adding a precommit hook to prettify files. @bmuenzenmeyer can you check into that / see if there's a ignore maybe?
targos commentedon Oct 24, 2023
Note that Git Hooks and npm install scripts are disabled globally on my computer for security reasons.
targos commentedon Oct 24, 2023
I think in this case the rendered post wouldn't look different. Prettier only asked to remove unnecessary escapes.
ovflowd commentedon Oct 24, 2023
Youre absolutely right. Sorry my prettier comment was not related to running locally to preview the post.
Just wanted to say that previewing a new blog post to verify it looks as expected is nice. But I suppose Vercel branch deployments already do that for you, so disregard that!
ovflowd commentedon Oct 24, 2023
Note that Git Hooks and npm install scripts are disabled globally on my computer for security reasons.
Oh, that makes sense. Right, then @bmuenzenmeyer might make sense to invoke prettier/eslint CLI directly from the blog script. And then write the resulting content to the file.
targos commentedon Oct 24, 2023
I'm also fine with a documentation update in https://github.com/nodejs/node/blob/main/doc/contributing/releases.md#17-create-a-blog-post that asks to run whatever is needed.