feat(website): the four templates and the public site
Heritage, Bold, Community and Clean drawing all 26 section variants with their headers, homepage order and style settings; colours made safe (WCAG AA) by the backend; fonts and corners from the shared brand style. Publishing into numbered versions, the content API with live messages and events and the church profile from Accounts, uploads, every page kind, simple event pages, Coming soon, 404, sitemap, SEO basics and the church's JSON-LD. The demo church (npm run demo) and Playwright e2e: every template's pages pass axe and the SEO checks. website.sh builds packages/seo. Decision 17 (first Owner) recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ setup() {
|
||||
|
||||
checkout() {
|
||||
local dir="$TMP/$1" p
|
||||
for p in contracts ui auth-client; do
|
||||
for p in contracts ui auth-client seo; do
|
||||
mkdir -p "$dir/packages/$p"
|
||||
echo "{\"name\":\"@crosscode/$p\"}" > "$dir/packages/$p/package.json"
|
||||
done
|
||||
@@ -39,13 +39,13 @@ checkout() {
|
||||
is_supported_product website
|
||||
}
|
||||
|
||||
@test "contracts, ui and auth-client are installed; contracts and auth-client built before the Website" {
|
||||
@test "contracts, ui, auth-client and seo are installed; contracts, auth-client and seo built before the Website" {
|
||||
checkout new
|
||||
website_install_deps "$TMP/new" hope
|
||||
grep -qx 'hope|new|npm ci --include=dev --no-audit --no-fund --include-workspace-root -w packages/contracts -w packages/ui -w packages/auth-client -w apps/website/backend -w apps/website/frontend' "$CALLS"
|
||||
grep -qx 'hope|new|npm ci --include=dev --no-audit --no-fund --include-workspace-root -w packages/contracts -w packages/ui -w packages/auth-client -w packages/seo -w apps/website/backend -w apps/website/frontend' "$CALLS"
|
||||
: > "$CALLS"
|
||||
website_build "$TMP/new" hope
|
||||
[ "$(cut -d'|' -f2 "$CALLS" | tr '\n' ' ')" = "new/packages/contracts new/packages/auth-client new/apps/website/backend new/apps/website/frontend " ]
|
||||
[ "$(cut -d'|' -f2 "$CALLS" | tr '\n' ' ')" = "new/packages/contracts new/packages/auth-client new/packages/seo new/apps/website/backend new/apps/website/frontend " ]
|
||||
}
|
||||
|
||||
@test "ports default to 5300 / 3300, else church.env's" {
|
||||
|
||||
Reference in New Issue
Block a user