Skip to content

Commit 574856c

Browse files
Revert "build(cdn): Bundle and minify runtime + host JS before deploy."
This reverts commit 9633982.
1 parent 9633982 commit 574856c

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

.github/actions/cdn-deploy/action.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,34 +32,25 @@ runs:
3232
path: /tmp/cli/
3333
merge-multiple: true
3434

35-
- name: Setup Deno
36-
uses: denoland/setup-deno@v2
37-
with:
38-
deno-version: v2.x
39-
4035
- name: Stage site
4136
shell: bash
4237
run: |
43-
mkdir -p _site/std _site/cli
38+
mkdir -p _site/runtime _site/std _site/host _site/cli
4439
45-
# compiler: served at the CDN root (cdn.edgepython.com/compiler.wasm).
40+
# compiler: the wasm module, served at the CDN root (cdn.edgepython.com/compiler.wasm).
4641
cp /tmp/compiler/compiler.wasm _site/compiler.wasm
4742
48-
# runtime: bundle + minify the public entries, keep src/ + worker/ layout so the worker URL resolves.
49-
deno run -A npm:esbuild@0.28.0 \
50-
runtime/src/index.js runtime/src/element.js runtime/worker/worker.js \
51-
--bundle --minify --format=esm --platform=browser --target=es2022 \
52-
--legal-comments=none --outbase=runtime --outdir=_site/runtime
43+
# runtime: JS sources; the wasm is loaded from the CDN root, not bundled here.
44+
cp -r runtime/. _site/runtime/
5345
5446
# std: <pkg>.wasm / <pkg>.py.
5547
cp -r /tmp/std/. _site/std/
5648
57-
# host: bundle + minify each capability into host.edgepython.com/<cap>/index.js.
49+
# host: flatten each capability's src/ into _site/host/<cap>/.
5850
for dir in host/*/src; do
5951
cap="$(basename "$(dirname "$dir")")"
60-
deno run -A npm:esbuild@0.28.0 "$dir/index.js" \
61-
--bundle --minify --format=esm --platform=browser --target=es2022 \
62-
--legal-comments=none --outfile="_site/host/$cap/index.js"
52+
mkdir -p "_site/host/$cap"
53+
cp -r "$dir"/. "_site/host/$cap/"
6354
done
6455
6556
# cli: release tarballs.

0 commit comments

Comments
 (0)