The scan job now runs both suites with coverage before scanning: pytest --cov (pyproject.toml: scripts/ without its tests, relative paths, coverage.xml) and `npm run test:coverage` (vite.config.ts: v8, lcov with projectRoot "..", so paths start web/). sonar-project.properties names both reports and drops sonar.coverage.exclusions. requirements-test.txt gains pytest-cov 7.1.0 and coverage 7.16.2 with every file's hash (uv pip compile --universal --generate-hashes --python-version 3.15; the existing pins are unchanged). web gains @vitest/coverage-v8 5.0.5, matching vitest; none of its packages has an install script. Coverage stays off for a plain `npm test`. The token check is its own job, so the scan steps no longer each repeat the condition; the workflow grants nothing at the top and the scan job contents: read. `npm run build:admin` replaces the bare `svelte-kit sync`: it syncs too, and writes the admin bundle the Worker's tests load. Locally: 576 vitest tests at 58.35% of lines, 299 pytest tests at 57.7%. Against main's new-code lines (SonarCloud's isNew), the reports cover 92 of 114 coverable lines, 80.7%: the 80% gate is borderline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
94 lines
3.4 KiB
JSON
94 lines
3.4 KiB
JSON
{
|
|
"name": "free-steam-games-web",
|
|
"private": true,
|
|
"version": "2.2.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite dev",
|
|
"dev:admin": "svelte-kit sync && vite --config admin/vite.config.ts",
|
|
"preview:admin": "npm run build:admin && vite --config admin/vite.config.ts --mode preview",
|
|
"build": "vite build && npm run build:admin",
|
|
"build:admin": "svelte-kit sync && vite build --config admin/vite.config.ts",
|
|
"build:desktop": "vite build",
|
|
"build:mobile": "vite build",
|
|
"analyze": "vite build --mode analyze",
|
|
"preview": "vite preview",
|
|
"typecheck": "npm run build:admin && npm run check && npm run check:admin && node node_modules/@typescript/native/bin/tsc -p admin/tsconfig.node.json && node node_modules/@typescript/native/bin/tsc -p admin/tsconfig.test.json && node node_modules/@typescript/native/bin/tsc -p tsconfig.worker.json && node node_modules/@typescript/native/bin/tsc -p tsconfig.test.json",
|
|
"knip": "knip",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage",
|
|
"tauri": "tauri",
|
|
"tauri:dev": "tauri dev",
|
|
"tauri:build": "tauri build",
|
|
"tauri:android:init": "tauri android init",
|
|
"tauri:android:dev": "tauri android dev",
|
|
"tauri:android:build": "tauri android build --apk",
|
|
"typecheck:worker": "node node_modules/@typescript/native/bin/tsc -p tsconfig.worker.json",
|
|
"cf:types": "wrangler types",
|
|
"cf:check": "npm run build:admin && wrangler deploy --dry-run",
|
|
"check": "svelte-kit sync && svelte-check --tsgo --tsconfig ./tsconfig.json",
|
|
"check:admin": "svelte-check --tsconfig ./admin/tsconfig.json",
|
|
"fonts": "python scripts/gen-fontface.py"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/bricolage-grotesque": "^5.3.0",
|
|
"@fontsource-variable/ibm-plex-sans": "^5.3.0",
|
|
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
"@lucide/svelte": "^1.58.0",
|
|
"@tanstack/svelte-virtual": "^3.13.47",
|
|
"@tauri-apps/api": "^2.12.4",
|
|
"@tauri-apps/plugin-process": "~2.4.0",
|
|
"@tauri-apps/plugin-shell": "^2.5.0",
|
|
"@tauri-apps/plugin-updater": "~2.14.0",
|
|
"bits-ui": "^2.19.5",
|
|
"class-variance-authority": "^0.7.0",
|
|
"clsx": "^2.1.1",
|
|
"echarts": "^6.1.0",
|
|
"echarts-wordcloud": "^2.1.0",
|
|
"fuse.js": "^7.5.0",
|
|
"idb-keyval": "^6.3.0",
|
|
"svelte-sonner": "^1.2.1",
|
|
"tailwind-merge": "^3.7.0"
|
|
},
|
|
"devDependencies": {
|
|
"@sveltejs/adapter-static": "3.0.10",
|
|
"@sveltejs/kit": "2.70.3",
|
|
"@sveltejs/vite-plugin-svelte": "7.3.1",
|
|
"@tailwindcss/vite": "^4.3.3",
|
|
"@tauri-apps/cli": "^2.12.3",
|
|
"@types/node": "^26.6.5",
|
|
"@typescript/native": "npm:typescript@~7.0.2",
|
|
"@vite-pwa/sveltekit": "^1.1.0",
|
|
"@vitest/coverage-v8": "^5.0.5",
|
|
"knip": "^6.41.0",
|
|
"rehype-sanitize": "^6.0.0",
|
|
"rehype-slug": "^6.0.0",
|
|
"rehype-stringify": "^10.0.1",
|
|
"remark-gfm": "^4.0.1",
|
|
"remark-parse": "^11.0.0",
|
|
"remark-rehype": "^11.1.2",
|
|
"rollup-plugin-visualizer": "^7.1.1",
|
|
"svelte": "5.57.2",
|
|
"svelte-check": "4.7.7",
|
|
"tailwindcss": "^4.3.3",
|
|
"typescript": "^6.0.3",
|
|
"unified": "^11.0.5",
|
|
"vite": "^8.3.4",
|
|
"vite-plugin-pwa": "^2.0.0",
|
|
"vitest": "^5.0.5",
|
|
"wrangler": "^4.151.1"
|
|
},
|
|
"overrides": {
|
|
"echarts-wordcloud": {
|
|
"echarts": "$echarts"
|
|
},
|
|
"@sveltejs/kit@2.70.3": {
|
|
"cookie": "^0.7.2"
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=26"
|
|
}
|
|
}
|