The dumps were imported into the bundle, which tied a data refresh to a
rebuild and put generated content in the source tree. They now sit in
static-contents/ with the rest of the site data, as on
bsi-ni.brain.riken.jp.
- add siteData.ts, which fetches the six files in parallel
- hand them to the singletons from main.tsx before the first render, so
components still read them synchronously
- type the four ranking lists, which have three different shapes
react-router removed withRouter in v6, and the shim that replaced it
kept nineteen components tied to injected router props. They now read
the state directly, matching how bsi-ni.brain.riken.jp is written.
- convert the remaining class components to function components
- call useLocation, useNavigate and useParams in place of the props
- drop src/common/lib/withRouter.tsx
writeBundle copied all 10 GB of it into dist/ on every build, although
the web server maps the directory in directly.
- drop the copy, which takes dist from 10 GB to 4.8 MB
- mount the directory on the preview server too, so that previewing a
build still behaves like production
The generated site data is not part of the source tree, so it now sits
beside the checkout, matching the bsi-ni.brain.riken.jp layout.
- resolve the directory from config.root rather than the process cwd
- drop the ignore rule, which no longer matches anything
The CRA toolchain was several major versions behind and no longer
maintained, so the whole build, lint and runtime stack is replaced.
- replace react-scripts with Vite 8 and TypeScript 7
- upgrade to React 19 and react-router 8
- swap unmaintained libraries: react-html-parser, axios, react-ga,
react-image-lightbox, react-helmet, moment, react-spinner-material
- replace ESLint with Biome for linting and formatting
- switch the package manager from yarn to npm
- serve static-contents/ with sirv in dev and copy it into the bundle
- keep a withRouter shim so the class components can stay as they are
for now