clone

a personal forge on plain git: static pages, stacked-diff reviews, signed local ci, repo sites and releases

Keep public pages' stylesheets through a private build #8

cat description

Private builds dropped public pages' CSS bundles from www/assets; the reviews list lost its styles on src.rest.

commits1oldest firstcombined diff 2 files, +37 -1
discussion0 comments

No comments yet: forge comment 8 adds one.

1/1 Keep public pages' stylesheets through a private repo's build

A private build ran 11ty with FORGE_WWW=$out FORGE_PUBLIC_WWW=$FORGE_WWW
in one command's assignments, and the second saw the first, so the
public root it shipped assets against was its own scratch directory. It
then swapped those assets into www/assets, carrying over nothing the
public pages had linked: every page whose CSS bundle no private page
renders lost its styles at the next private build, the reviews list
first, and a full build didn't bring them back while those pages were
unchanged. The public root is now named before the assignments. The
new scenario checks every stylesheet public pages link after public,
private and full builds; it fails without the fix.
2 files changed, +37 -1
Mbin/forge7++++++-
Atest/scenarios/private-build-assets.sh31++++++++++++++++++++++++++++++
M bin/forge +6 -1
A test/scenarios/private-build-assets.sh +31 -0