wilddragon-site/build.sh
Zac Gaetano 54fc4bb356 Sync repo to live wilddragon.net deployment
Live site had drifted from the repo: it serves prebuilt minified bundles
(app/components/tweaks-panel.min.js), vendored React, robots.txt and
sitemap.xml, with root-relative asset paths and an apex canonical.

- index.html: replaced with the live served copy
- app.jsx: App root extracted from the old inline text/babel block
- build.sh: esbuild step producing the *.min.js bundles
- vendor/: React 18.3 production UMDs pulled from live
- robots.txt, sitemap.xml: pulled from live
- Dockerfile: ship built bundles + vendor, drop raw jsx/standalone
2026-09-18 07:50:09 -04:00

7 lines
289 B
Bash
Executable file

#!/bin/sh
# Build minified bundles from the JSX sources (matches what's deployed).
set -e
cd "$(dirname "$0")"
for f in components tweaks-panel app; do
npx -y esbuild@0.24 "$f.jsx" --loader:.jsx=jsx --jsx=transform --minify --target=es2020 --outfile="$f.min.js" --log-level=warning
done