Modernize DevSpace UI frontend toolchain#3267
Open
sts wants to merge 16 commits into
Open
Conversation
✅ Deploy Preview for devspace-docs canceled.Built without sensitive environment variables
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR modernizes the DevSpace UI frontend stack while keeping the existing Webpack-based build and UI behavior intact.
The main goals are to move the UI onto current React/TypeScript tooling, remove deprecated frontend packages, simplify the custom CRA-era build scripts, and make local/release UI builds more reproducible.
What changed
ui/.nvmrc.xtermpackages with maintained@xterm/*packages.resize_id does not existerrors.moment,history,react-cookie,react-timeago,js-sha256,isomorphic-unfetch, and others.es2020and the automatic React JSX runtime.css-loaderand applied compatible audit fixes, removing the old PostCSS 7 vulnerability chain.react-dev-utilsusage with small local helpers.hack/build-ui.bashusenpm cifor reproducible installs.hack/build-all.bashhandle prebuilt UI artifacts more robustly and resolvego-bindatafromPATHbefore falling back toGOPATH/bin.Compatibility notes
This keeps the existing Webpack build model rather than migrating the UI to a new bundler. The current CSS Modules/SCSS setup is preserved, and the production UI artifact is still packaged through the existing
hack/build-ui.bashflow.
The Google Tag Manager snippet is intentionally left unchanged in this PR.
npm auditis improved, but not fully clean. The remaining non-forced audit findings are currently tied toworkbox-webpack-pluginandwebpack-dev-servertransitive dependencies. Fixing those cleanly should be handled separately,likely by removing Workbox if the local UI does not need service-worker caching.
Validation
Ran successfully:
npm cinpx tsc --noEmit --project tsconfig.jsonnpm run lintnpm run build./hack/build-ui.bash./hack/build-all.bash