sholladay / pogo

Server framework for Deno
Mozilla Public License 2.0
482 stars 33 forks source link

Add watch mode script #58

Closed vivekchauhan12000 closed 2 years ago

vivekchauhan12000 commented 3 years ago

this feature helps to hotreload the server with the help of single command for example " deno run --allow-read --allow-run --allow-net hotreload.ts --main=server.js " In which server.js is the file you need to reload automatically when saved or changes been made in it. in place of file address in command, we can also use the HTTPS way of deno after it been added in the main branch

sholladay commented 3 years ago

Hi @vivekchauhan12000, thanks for contributing. Looks nice!

So this serves the same purpose as nodemon or pm2, right? The code doesn't seem to be connected to Pogo per se. Is there a reason you think it should live in here as opposed to being a separate module on deno.land/x? Have I missed something?

I am open to having an official watch mode for Pogo apps, especially if there is some benefit it can provide over a generic watch module.

vivekchauhan12000 commented 3 years ago

Yes like nodemon but within pogo itself I not connected to any of the pogo files to make sure if someone wants to make it react.js with pogo then it can mess up with react hot reload and if someone tries pogo first time it will make it work much easier and different from other libraries like oak, abc

sholladay commented 3 years ago

Hi @vivekchauhan12000. 👋 Are you still interested in getting this merged? Did you take a look at those review comments?

sholladay commented 2 years ago

Closing due to lack of progress. But I'd love to have a tool like this merged, if anyone has time to work on it.