Files
qortal-web-builder/.cursor/rules/release-zip-after-changes.mdc
Simon James b54a3139c7 Initial commit: Qortal Web Builder monorepo.
Includes QWB, Qortal Web, and Q-Shops Q-Apps with shared packages and build scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 12:17:29 +00:00

21 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: Zip portfolio Q-App after generating or updating deliverable files
alwaysApply: true
---
# Release zip
After creating or substantially editing Q-App files in this project (`index.html`, `app.js`, `style.css`, `manifest.json`, `favicon.svg`, `zip-store.js`, or anything under `dist/` / `extracted/`), produce a fresh archive at the project root. **Run a full `npm run build` first** so the production `dist/` tree exists.
- Name: `Portfolio-Q-App-v3-YYYYMMDD.zip` (use the users current date for `YYYYMMDD`).
- **Preferred:** run **`bash scripts/zip-portfolio.sh`** (or `npm run zip:portfolio`). It stages a **flat copy of `dist/`** (correct **`index.html`** + **`assets/index-*.js`**, `manifest.json` with `"main": "index.html"`, then adds legacy `app.js` & `style.css` if present). This avoids the grey screen when the Hub expected **`index.html`** at the app root and tried to run **`/src/main.tsx`**.
- **Alternate (flat dist only, no legacy files):** `bash scripts/make-zip.sh` / `npm run zip:hub`.
Command (if not using the script):
`bash scripts/zip-portfolio.sh`
Do not include older `*.zip` files inside new zips.
**End of task:** When this rule applies, **always** finish by running `bash scripts/zip-portfolio.sh` (after `npm run build` if you changed sources) so the project root has an up-to-date `Portfolio-Q-App-v3-YYYYMMDD.zip`. Do not stop after code changes without producing the zip unless the user explicitly opts out.