owenashurst / agar.io-clone

Agar.io clone written with Socket.IO and HTML5 canvas
MIT License
2.89k stars 1.12k forks source link

How to use nodemon benefits? #437

Open Elegarret opened 8 years ago

Elegarret commented 8 years ago

This project uses nodemon module, but I dont undestand how to use it correctly in dev process. Nodemon tracks /bin folder which is generated from /src when starting npm. So when I make changes to src nodemon doesnt restart server. It restarts only when I make changes to bin, but it makes no sense.

What is the right way to run server so it would handle changes to src and apply them without manual restarting npm after every changes of sources?

abalabahaha commented 8 years ago

There is a gulp watch task, but it appears is is broken currently (doesn't compile to bin while the server is running)

Elegarret commented 8 years ago

Thanks for answer, @abalabahaha But I'm quite unfamiliar with that gulp thing. Is there any easy way to fix it? Or probably I would set project to run directly from src?:)