From c1c68e4ed075abe90680020acbf48801999e9471 Mon Sep 17 00:00:00 2001 From: Project516 <138796702+Project516@users.noreply.github.com> Date: Tue, 3 Nov 2026 20:33:55 -0600 Subject: [PATCH] Run the java-web command through a launcher that turns on Node's compile cache --- AGENTS.md | 2 +- docs/browser.md | 2 +- package.json | 3 ++- scripts/build-web.ts | 8 ++++++++ src/node.ts | 3 ++- test/image.test.ts | 8 +++++--- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index e365583..639178d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -31,7 +31,7 @@ Node, which is how the tests run. (static String calls), `cheerpOSAddStringFile`, `cjFileBlob`, `/files/` in IndexedDB and one VM per about:blank iframe. Keep these working. - The release form is an npm package of the built files only - (`java-web.js`, `java-web-worker.js`, `node.js` (the Node entry and the + (`java-web.js`, `java-web-worker.js`, `node.js` (the Node entry), `cli.js` (the `java-web` command), `boot.pack`, `jdk/.jar`, `jdk/javac.pack`, `jdk/jdk.localedata.txt`, and OpenJDK's notices in `jdk/legal/`), versioned, with nothing built at install. A GitHub Actions workflow triggered by a release diff --git a/docs/browser.md b/docs/browser.md index 524de37..e477ac6 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -1,7 +1,7 @@ # Using java-web in a page The npm package holds the built files: `java-web.js`, `java-web-worker.js`, -`boot.pack` and `jdk/` for pages, and `node.js` for Node ([node.md](node.md)). Serve `node_modules/@project516/java-web/dist/` as static files +`boot.pack` and `jdk/` for pages, and `node.js` and `cli.js` (the `java-web` command) for Node ([node.md](node.md)). Serve `node_modules/@project516/java-web/dist/` as static files and load `java-web.js` with a classic `