Skip to content

Post-deploy housekeeping: build order, source maps, ogimage.xcf - #493

Merged
stephaniehobson merged 3 commits into
mainfrom
488--housekeeping
Nov 10, 2026
Merged

stephaniehobson merged 3 commits into
mainfrom
488--housekeeping

Conversation

@stephaniehobson

Copy link
Copy Markdown
Collaborator

Three of the four items from #488:

  • npm run build now runs build:css, build:app and build:version.json in order with run-s. Before, npm-run-all build:* ran them alphabetically, so the Vite build ran before the Stylus compile it depends on. The separate "Compile Stylus" steps in deploy.yml and CI's lint-and-test job are gone; in CI, Build now runs before the unit tests because they import the compiled CSS. The Playwright jobs keep their Stylus step since they never run the build.
  • The production build no longer emits source maps, so about 3 MB of .map files stop going to the public bucket on every deploy. npm run size builds with --sourcemap itself before running source-map-explorer.
  • public/img/ogimage.xcf (the GIMP source for ogimage.png) is deleted so it is no longer copied into build/ and deployed.

The fourth item, removing the old create-react-app static/ tree from the prod bucket, is a manual step after a prod deploy and stays open on the issue.

Refs #488, WT-1916.

npm-run-all build:* ran the scripts alphabetically, so build:app ran
before build:css and only worked because CI and deploy compiled Stylus
in a separate step first. Run them in order with run-s and drop those
steps.
The production build emitted them for source-map-explorer, so about
3 MB of .map files were uploaded to the public bucket on every deploy.
npm run size now builds with --sourcemap itself.
It sat in public/, so it was copied into build/ and deployed. Only the
rendered PNG is used.
@stephaniehobson
stephaniehobson merged commit ec6ec18 into main Nov 10, 2026
9 of 10 checks passed
@stephaniehobson
stephaniehobson deleted the 488--housekeeping branch November 12, 2026 17:50
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.

2 participants