remy / nodemon

Monitor for any changes in your node.js application and automatically restart the server - perfect for development
http://nodemon.io/
MIT License
26.23k stars 1.72k forks source link

Is `nodemon` will be replaced by Node.js v18.11.0? #2072

Closed fzn0x closed 1 year ago

fzn0x commented 1 year ago

Hi @remy, is nodemon will be replaced by Node v18.11.0? AFAIK most people using nodemon only for watching changes from the main file. If yes, we need to announce it on the Nodemon README anyways. If no...

Is there still any benefits from nodemon when Node v18.11.0 --watch flag is released (except from someone that is using the previous versions of Node from v18.11.0)?

remy commented 1 year ago

No, node's native watch won't replace nodemon. Nodemon has a much broader use case. Things like watching TS projects, or reloading with --inspect or using python and not node...the list goes on.

Sorry, but that was a bit of a naive question.

fzn0x commented 1 year ago

No, node's native watch won't replace nodemon. Nodemon has a much broader use case. Things like watching TS projects, or reloading with --inspect or using python and not node...the list goes on.

Sorry, but that was a bit of a naive question.

Thanks for the answer!

fzn0x commented 1 year ago

No, node's native watch won't replace nodemon. Nodemon has a much broader use case. Things like watching TS projects, or reloading with --inspect or using python and not node...the list goes on.

Sorry, but that was a bit of a naive question.

Naive questions challenge assumptions and allow you to build models of systems. I'm just questioning what people questioning right now around me, your answer should help.

Sorry if that is a 'bad' naive question.

Reference around me: https://pawelgrzybek.com/til-node-v18-11-0-comes-with-a-watch-mode-so-you-might-not-need-nodemon/

rafipiccolo commented 1 year ago

i did some tryings with node 19 and the --watch options. i was only using nodemon to watch my main script and all of it's imported files. For my usecase, i will indeed delete nodemon as it is completely redondant.

if people expect to watch non js/imported files : translation files, images, ... or anything else. node --watch doesnt support that and nodemod is still needed

sgoodluck commented 1 year ago

Sorry, but that was a bit of a naive question.

The first half of your comment clarified (and likely will continue to be helpful as people dive into the changes); however, I found this portion unprofessional/unhelpful.

erfanium commented 1 year ago

node --watch flag is working well with typescript projects

ajiho commented 1 month ago

Although 18.11 can basically replace nodemon, I think it will add an extra step to your process. You must create a JS file to execute additional logic, and then nodemon can directly edit the commands to be executed in packagejson. I think nodemon is more user-friendly. Thank you very much, nodemon