stryker-dashboard icon indicating copy to clipboard operation
stryker-dashboard copied to clipboard

Hot Reloading Stryker elements

Open lex-funy opened this issue 2 years ago • 2 comments

To make development of the frontend easier, it would be nice to have the frontend reload when changes are made to Stryker elements.

In the current state of the project Stryker elements needs to manually be rebuild.

lex-funy avatar Mar 14 '24 08:03 lex-funy

It should be doable with something like: https://vitejs.dev/guide/build.html#rebuild-on-files-changes and then maybe specifying angular to watch for changes made in a different directory (not sure how yet).

xandervedder avatar Mar 14 '24 19:03 xandervedder

I was also busy with trying to make hot reloading work from the backend -> frontend using a reverse proxy. It doesn't really work that well since we should proxy everything including websockets but that is where things didn't work yet.

Definitely should use something like http-proxy or the express middleware.

xandervedder avatar Mar 15 '24 13:03 xandervedder

This already works now. Run stryker-elements in watch mode and the frontend will reload when something in stryker-elements changes.

xandervedder avatar May 24 '24 14:05 xandervedder