Skip to content

Make web UI JavaScript dependency paths configurable#90

Open
KaannKara wants to merge 1 commit into
acooks:masterfrom
KaannKara:configure-web-js-paths
Open

Make web UI JavaScript dependency paths configurable#90
KaannKara wants to merge 1 commit into
acooks:masterfrom
KaannKara:configure-web-js-paths

Conversation

@KaannKara
Copy link
Copy Markdown

Summary

  • Add build-time variables for the web UI third-party JavaScript dependency paths.
  • Replace hard-coded script tags in index.tpl.html with template placeholders resolved during assemble-html.
  • Expose the configured paths through make config while preserving the current bundled defaults.

Fixes #42

Validation

  • docker run --rm -v "$PWD:/src" -w /src rust:latest sh -c 'git config --global --add safe.directory /src && make -C html5-client >/tmp/default-build.log && grep -E "src=\\\"(js/jquery|js/mustache|js/cbuffer|js/bootstrap|js/d3|js/pako)" html5-client/output/index.html && make -C html5-client D3_JS=/usr/share/javascript/d3/d3.min.js JQUERY_JS=/usr/share/javascript/jquery/jquery.min.js >/tmp/override-build.log && grep -E "src=\\\"(/usr/share/javascript/(d3|jquery)|js/mustache|js/cbuffer|js/bootstrap|js/pako)" html5-client/output/index.html'\n- make config | sed -n '/Web UI JavaScript:/,/^$/p'\n- make -C html5-client test\n- git diff --check\n\n## Note\n- Local macOS make -C html5-client still hits the existing BSD sed -i incompatibility in the pre-existing version generation rule, so I verified the build path in a Linux container matching the project makefile assumptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make location of external js dependencies configurable

1 participant