chore: use yarn (fleet standard) + declare vite devDependency

- Switch package manager from npm to yarn 1.22.22 (pinned via packageManager,
  matches PressV/sp-ui-kit): remove package-lock.json, add yarn.lock (v1).
- Add "vite" as an explicit devDependency. npm 7+ auto-installed it as a peer of
  @vitejs/plugin-vue / @tailwindcss/vite, which masked the missing declaration; a
  clean `yarn install` (no peer auto-install) needs it explicit or the tsc build
  fails to resolve 'vite' / 'vite/client'.
- README: npm -> yarn (+ `corepack enable`).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-07-02 09:06:22 +02:00
parent c340aef2c3
commit 27edd2664a
7 changed files with 1098 additions and 2321 deletions

View File

@ -20,16 +20,20 @@ belt under each entry (number badges + animated conveyor) · time window
## Quick start (standalone dev)
Package manager is **yarn 1.22.22** (pinned via `packageManager`; matches PressV).
`corepack` provides it.
```bash
cp .npmrc.example .npmrc # paste a Gitea PAT with "package: Read" scope (one-time)
npm install
npm run dev # http://localhost:5173/module/temper_rejects/
corepack enable # one-time per machine (honours the pinned yarn)
cp .npmrc.example .npmrc # paste a Gitea PAT with "package: Read" scope (yarn v1 reads .npmrc)
yarn install
yarn dev # http://localhost:5173/module/temper_rejects/
```
With **no gateway backend**, the store falls back to **bundled sample data**
(`src/data/sample.ts`) and the booking flow simulates success — so the whole
terminal (filter, belt, dialog) is demoable offline (a `DEMO-DATEN` tag shows).
`npm run build` → `dist/` (committed).
`yarn build` → `dist/` (committed).
---
@ -58,7 +62,7 @@ git submodule add https://git.sprodat.eu/Erik/SPA_AfterTemperRejection.git modul
Restart → log shows `loaded module: temper_rejects`. Smoke:
`http://localhost:8800/module/temper_rejects/` and `…/api/overview`. **Deploy:**
`npm run build`, commit `dist/`, bump the submodule pin. Never build on the host.
`yarn build`, commit `dist/`, bump the submodule pin. Never build on the host.
---

File diff suppressed because one or more lines are too long

4
dist/index.html vendored
View File

@ -9,8 +9,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ausschuss-Station</title>
<script type="module" crossorigin src="/module/temper_rejects/assets/index-CzdVhZJR.js"></script>
<link rel="stylesheet" crossorigin href="/module/temper_rejects/assets/index-aippIsDS.css">
<script type="module" crossorigin src="/module/temper_rejects/assets/index-DCD9Lyh2.js"></script>
<link rel="stylesheet" crossorigin href="/module/temper_rejects/assets/index-Dw_xKaUy.css">
</head>
<body>
<div id="app"></div>

2313
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,7 @@
"private": true,
"version": "0.1.0",
"type": "module",
"packageManager": "yarn@1.22.22",
"description": "Ausschuss-Station — a central, login-free reject-booking terminal for all presses' tempered carts, served by the SPRO gateway under /module/temper_rejects.",
"scripts": {
"dev": "vite",
@ -29,6 +30,7 @@
"@vue/tsconfig": "^0.9.0",
"tailwindcss": "^4.2.2",
"typescript": "~5.9.3",
"vite": "^8.0.1",
"vue-tsc": "^3.2.5"
}
}

1084
yarn.lock Normal file

File diff suppressed because it is too large Load Diff