Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cursor/rules/demos-pages.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions demos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions demos/assemble-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading