feat: add front hot-reload development mode - #232
Conversation
Adds source-mode serving for web-apps and sdkjs so UI changes are visible with a browser reload (no grunt build). Includes auto-reload via a livereload server for web-apps (polling mode, reliable on WSL/Windows). - develop/Makefile: add front-dev, front-prod, front-dev-live, sdkjs-dev targets with SDK sentinel guard, nginx validate-before-swap with rollback to .prod.bak, and automatic npm ci bootstrap on first run - develop/setup/ds-docservice-dev.conf: nginx dev config serving web-apps and sdkjs from source (/develop), livereload injection via sub_filter, service worker neutralised, graceful fallback when livereload server is not running - develop/setup/livereload-tools/: Node livereload server (polling 1s) with versioned lockfile for reproducible installs across machines Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Signed-off-by: Alex Hernández <ahmartin@arsys.es>
6560c23 to
b509578
Compare
|
@moodyjmz — status check on TL;DRWorks today, no action needed. One known, already-scoped break coming when sdkjs's webpack migration merges — a one-line Makefile fix, not a redesign. web-apps: still fine, verified
web-apps' Grunt→webpack migration ( sdkjs: fine today, breaks on merge — fix already known
I checked what that branch actually ships before flagging this as a real problem, and it isn't one — it's a rename, not a redesign:
So the fix, to land in the same PR that merges sdkjs's webpack migration: # develop/Makefile:199
- cd $(EO_REPO)/sdkjs/build && npm install --no-audit --no-fund && grunt develop
+ cd $(EO_REPO)/sdkjs/build && npm install --no-audit --no-fund && npm run developNo other changes needed — AskCan you (or whoever merges |
Adds source-mode serving for web-apps and sdkjs so UI changes are visible with a browser reload (no grunt build). Includes auto-reload via a livereload server for web-apps (polling mode, reliable on WSL/Windows).