balderdashy / sails-hook-subapps

Sails hook for including child Sails apps into a parent app
18 stars 3 forks source link

add sails-hook-autoreload support #2

Open albertmitsov opened 9 years ago

albertmitsov commented 9 years ago

Amazing we have it at last!

Please add support for https://github.com/sgress454/sails-hook-autoreload too!

sgress454 commented 9 years ago

Glad you like it @albertmitsov. The subapps should survive an autoreload of the parent app, but if you mean reloading the parent app when a new subapp is added (or an existing one is modified), that's a bit more complicated and probably won't be implemented any time soon. We'd like to implement a standardized way of reloading hooks (probably via a reload method) so that autoreload doesn't need to be patched for each new thing we're interested in watching; once that's done, we can take a look at what would be needed to make this hook reloadable.