From dbb52f0c819e42d33ea73e9c8d3c65a243840c7a Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Thu, 25 Sep 2025 11:28:31 +0900 Subject: [PATCH] Copy over all JS files instead of specifying them individually This is easier to maintain, as per work on https://github.com/whatwg/html/pull/11392 we'll be adding a new JS file. --- build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 9d3a6c9d..09c3d79a 100755 --- a/build.sh +++ b/build.sh @@ -530,8 +530,8 @@ function doServerBuild { # server getting confused about their absence.) demos/ needs to be sent in full for inlining. local zip_args=( --recurse-paths "$HTML_TEMP/$input_zip" . \ - --include ./source ./404.html ./link-fixup.js ./html-dfn.js ./styles.css \ - ./fonts/ ./images/ ./dev/ ./demos/\* + --include ./source ./404.html "./*.js" ./styles.css \ + ./fonts/ ./images/ ./dev/ "./demos/*" ) $QUIET && zip_args+=( --quiet ) (cd "$HTML_SOURCE" && zip "${zip_args[@]}") @@ -707,8 +707,7 @@ function processSource { Disallow: /commit-snapshots/ Disallow: /review-drafts/" > "$HTML_OUTPUT/robots.txt" cp -p "$HTML_SOURCE/404.html" "$HTML_OUTPUT" - cp -p "$HTML_SOURCE/link-fixup.js" "$HTML_OUTPUT" - cp -p "$HTML_SOURCE/html-dfn.js" "$HTML_OUTPUT" + cp -p "$HTML_SOURCE/"*.js "$HTML_OUTPUT" cp -p "$HTML_SOURCE/styles.css" "$HTML_OUTPUT" cp -pR "$HTML_SOURCE/fonts" "$HTML_OUTPUT" cp -pR "$HTML_SOURCE/images" "$HTML_OUTPUT"