diff --git a/.cursor/rules/demos-pages.mdc b/.cursor/rules/demos-pages.mdc index 43d2c6a..13b77ac 100644 --- a/.cursor/rules/demos-pages.mdc +++ b/.cursor/rules/demos-pages.mdc @@ -22,6 +22,7 @@ Source of truth: `demos/README.md` and `demos/assemble-pages.sh`. Keep the READM - Publish when there is no `vercel.json` and either: - no `package.json` + root `index.html` → copy the **whole folder**; - `package.json` + `package-lock.json` (or `npm-shrinkwrap.json`) → `rm -rf dist && npm ci --no-audit --no-fund && npm run build`, publish `dist/` (must contain `dist/index.html`). Fail fast if the lockfile is missing. +- Progress / `npm` output: stderr only. The `{ ... } > index.html` block must not capture build logs. - Vite: `base: './'`. Do not commit `node_modules/` or `dist/`. ## Workflow diff --git a/demos/README.md b/demos/README.md index 0f85240..6341e17 100644 --- a/demos/README.md +++ b/demos/README.md @@ -31,6 +31,7 @@ Official static host: [https://robotemi.github.io/openapi/](https://robotemi.git | Demo | Mode | Deploy | |------|------|--------| | [mvp-frontend-only](mvp-frontend-only/) | Client-only (browser → temi API) | [https://robotemi.github.io/openapi/mvp-frontend-only/](https://robotemi.github.io/openapi/mvp-frontend-only/) | +| [temi-openapi-scenario-runner](temi-openapi-scenario-runner/) | Client-only (Vite/TypeScript, browser → temi API) | [https://robotemi.github.io/openapi/temi-openapi-scenario-runner/](https://robotemi.github.io/openapi/temi-openapi-scenario-runner/) | ## Contributing diff --git a/demos/assemble-pages.sh b/demos/assemble-pages.sh index 51c7973..1c9513d 100755 --- a/demos/assemble-pages.sh +++ b/demos/assemble-pages.sh @@ -71,8 +71,8 @@ EOF echo "assemble-pages: $name has package.json but no package-lock.json (or npm-shrinkwrap.json); npm ci requires a lockfile" >&2 exit 1 fi - echo "assemble-pages: building $name" - (cd "$dir" && rm -rf dist && npm ci --no-audit --no-fund && npm run build) + echo "assemble-pages: building $name" >&2 + (cd "$dir" && rm -rf dist && npm ci --no-audit --no-fund && npm run build) >&2 if [ ! -f "${dir}dist/index.html" ]; then echo "assemble-pages: $name build produced no dist/index.html" >&2 exit 1