systemjs-hot-reloader
                                
                                 systemjs-hot-reloader copied to clipboard
                                
                                    systemjs-hot-reloader copied to clipboard
                            
                            
                            
                        Aurelia Support
I'm trying to start a project with aurelia+jspm+hmr using this to reload. Unfortunately I'm not expert and it seems hard to make the aurelia reload after get new files.
here you go https://github.com/born2net/ng2Boilerplate
jspm hrm ng2
@born2net I saw something that can be useful in your sample, but aurelia and angular are different frameworks. I believe that there is a better way to do it with aurelia, maybe the this can solved his team
@NunoCruzSW Got a solution?
pleease we need this!
What's the issue with Aurelia reloading at the moment
Im unfamiliar with the aurelia ecosystem and have no idea what it would take to support HMR. Any idea why it doesn't 'just-work'?
I tried long time ago, reloading scripts/ components was enough. I tried to reset the route but was not reloading. Aurelia has a component container, and some dependency injection thing. Not sure if it requires more work.
On 28 Jan 2017 15:12, "Alexis Vincent" [email protected] wrote:
Im unfamiliar with the aurelia ecosystem and have no idea what it would take to support HMR. Any idea why it doesn't 'just-work'?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/capaj/systemjs-hot-reloader/issues/102#issuecomment-275853548, or mute the thread https://github.com/notifications/unsubscribe-auth/AUWiTZuQAInAsw6ssK4iMhUGKdzDtNicks5rW1rdgaJpZM4KAEyC .
--
[image: Softworks logo] www.softworks.com [image: Facebook] https://www.facebook.com/softworksworkforce [image: Twitter] http://twitter.com/softworksltd [image: You Tube] https://www.youtube.com/user/SoftworksWorkforce [image: Linked In] http://www.linkedin.com/company/softworks-workforce-management-solutions
[image: banner1] Softworks Goal - To make a positive difference to the working lives of our users, their organisation & employees! [image: banner2]
Softworks Ireland http://www.softworks.com/ie Tel: +353 1 286 6126 [image: line] Softworks UK http://www.softworks.com/uk Tel: +44 1527 888 060 [image: line] Softworks Canada http://www.softworks.com/ca Tel: +1 (226) 314 2519 [image: line] Softworks USA http://www.softworks.com/us Tel: +1 415 432 4400
The information in this e-mail and any attachments to it are confidential. The contents may not be copied or used by anyone other than the addressee and must not be further disclosed without our permission. If you have received this e-mail by mistake, please notify the sender immediately and delete this e-mail and any attachments to it from your systems.
WARNING: Although the company has taken reasonable precautions to ensure no viruses are present in this e-mail, the company cannot accept responsibility for any loss or damage arising from the use of this e-mail or any attachments to it.
I found this: https://github.com/aurelia/hot-module-reload
@alexisvincent the link is only for the webpack implementation, not for System Js, we can lear about how they do it and make our own implementation.
The ideia of that package was to be generic HMR, but not sure if they are supporting other than webpack. Last month they are trying to support hmr with webpack. Microsoft is trying to create tool to spa projects, with aspnet/JavaScriptServices. this tool is based on webpack and the aspnet community doing spa projects is looking to it as a way to make aspnet work with hmr
On 29 Jan 2017 19:02, "Daniel Meza" [email protected] wrote:
@alexisvincent https://github.com/alexisvincent the link is only for the webpack implementation, not for System Js, we can lear about how they do it and make our own implementation.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/capaj/systemjs-hot-reloader/issues/102#issuecomment-275937097, or mute the thread https://github.com/notifications/unsubscribe-auth/AUWiTY4KwENybQwISOtDJM8VNk-_Uh7Bks5rXOIygaJpZM4KAEyC .
--
[image: Softworks logo] www.softworks.com [image: Facebook] https://www.facebook.com/softworksworkforce [image: Twitter] http://twitter.com/softworksltd [image: You Tube] https://www.youtube.com/user/SoftworksWorkforce [image: Linked In] http://www.linkedin.com/company/softworks-workforce-management-solutions
[image: banner1] Softworks Goal - To make a positive difference to the working lives of our users, their organisation & employees! [image: banner2]
Softworks Ireland http://www.softworks.com/ie Tel: +353 1 286 6126 [image: line] Softworks UK http://www.softworks.com/uk Tel: +44 1527 888 060 [image: line] Softworks Canada http://www.softworks.com/ca Tel: +1 (226) 314 2519 [image: line] Softworks USA http://www.softworks.com/us Tel: +1 415 432 4400
The information in this e-mail and any attachments to it are confidential. The contents may not be copied or used by anyone other than the addressee and must not be further disclosed without our permission. If you have received this e-mail by mistake, please notify the sender immediately and delete this e-mail and any attachments to it from your systems.
WARNING: Although the company has taken reasonable precautions to ensure no viruses are present in this e-mail, the company cannot accept responsibility for any loss or damage arising from the use of this e-mail or any attachments to it.
@danielmeza I didn'd saw any dependency on webpak, so maybe is a just a library help any other library to reload and re-render components. But yes we need to look to the webpack plugin to learn how they use that Aurelia module reloader
@nmocruz Yes you're right, it not have any dependency to WebPack, so I suppose that we need some sokect or server tecnology in order to advince the browser that some conten is new, we can use gulp to watch the changes and sokect.io as sokect layer, for get started.
@danielmeza sounds a lot like https://github.com/capaj/chokidar-socket-emitter ?
@peteruithoven yes!! it´s perfect!
Is there anyone here who would like to champion this?
I found this https://github.com/aurelia/webpack-plugin/issues/65 the work is done by the webpack-plugin but I can´t find the file to see the source code.
@danielmeza It seems like the aurelia team is having problems even with webpack to make HMR work. It's not easy to understand why, but it's the Achilles tendon to me. I was following the framework for a while, and trying to help, I love the concept, but unfortunately, I will keep this on standby just for a while. Rob and maybe others member are like part-time developers or their priority is not to make HMR usable, is too buggy and because they focus is the simplicity, when comes bigger project everything starts to fail. I can delay a new project a little more, but then I need to decide if is not better to watch other candidates
Start doing it, but tooo many questions: Communication beetwen System HMR and Aurelia Custom Loader How replace webpack hooks, to systemjs ones
Hope found some answers next few day and did working sample