Files
romm/frontend/package.json
Sam Dornan fec6e494f7 ci(coverage): measure frontend coverage with v8 and backend branch coverage (#5407)
* ci(coverage): measure frontend coverage with v8 and backend branch coverage

The frontend had no coverage measurement, and the backend's line-only
report counts a one-sided `if` as covered when its body never runs.

- Add @vitest/coverage-v8 and `npm run test:coverage`. Its include lists
  every source file, so a file no test imports reports 0% instead of
  disappearing. Generated types, locales, tokens, test utilities,
  stories, fixtures and play helpers are excluded.
- Frontend Checks runs tests with coverage and uploads the cobertura
  report to GitHub code coverage as code-coverage/vitest, mirroring
  pytest.yml: a separate job holds code-quality: write and fork PRs skip
  the upload.
- Turn on branch coverage in backend/.coveragerc.

Baseline on master: 407 test files pass; frontend lines 63.3%, branches
55.3%. The app project alone (no stories) gives 61.4% lines, so stories
add about two points.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4iK9WRvZqdTHiRc9gY

* ci(coverage): include JavaScript sources in the frontend coverage report

The two audio worklets (gmeAudioWorklet.js, pico8AudioWorklet.js) are
production code that the `{ts,vue}` glob left out of the report, so they
now show at 0% instead of being omitted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4iK9WRvZqdTHiRc9gY

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 10:49:20 -05:00

133 lines
4.0 KiB
JSON

{
"name": "romm",
"private": true,
"version": "0.0.1",
"author": "Zurdi <https://github.com/zurdi15>",
"description": "A beautiful, powerful, self-hosted ROM manager",
"license": "AGPL-3.0-only",
"homepage": "https://github.com/rommapp/romm",
"repository": {
"type": "git",
"url": "git+github.com/rommapp/romm.git"
},
"bugs": {
"url": "https://github.com/rommapp/romm/issues"
},
"keywords": [
"rom",
"manager",
"emulation"
],
"type": "module",
"scripts": {
"build:tokens": "tsx scripts/build-tokens.ts",
"predev": "npm run build:tokens",
"prebuild": "npm run build:tokens",
"dev": "vite --host",
"build": "vite build",
"preview": "vite preview",
"typecheck": "vue-tsc --build",
"typecheck:scripts": "tsc --build tsconfig.node.json",
"generate": "openapi --input http://127.0.0.1:3000/openapi.json --output ./src/__generated__ --client axios --useOptions --useUnionTypes --exportServices false --exportSchemas false --exportCore false",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build",
"storybook:test": "vitest run --project storybook",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:report": "playwright show-report e2e/.output/specs/report"
},
"dependencies": {
"@floating-ui/vue": "^2.0.0",
"@mdi/font": "7.4.47",
"@vueuse/core": "^15.0.0",
"@vueuse/integrations": "^15.0.0",
"@zxing/browser": "^0.2.0",
"@zxing/library": "^0.23.0",
"axios": "^1.18.1",
"bowser": "^2.14.1",
"country-flag-emoji-polyfill": "^0.1.10",
"cronstrue": "^3.0.0",
"date-fns": "^4.1.0",
"fflate": "^0.8.3",
"js-cookie": "^3.0.7",
"lodash": "^4.18.1",
"md-editor-v3": "^7.0.0",
"mitt": "^3.0.1",
"pinia": "^4.0.0",
"qrcode": "^1.5.4",
"semver": "^7.6.2",
"socket.io-client": "^4.7.5",
"spark-md5": "^3.0.2",
"vanilla-tilt": "^1.8.1",
"vue": "^3.5.43",
"vue-i18n": "^11.1.10",
"vue-router": "^5.3.1",
"vue3-pdf-app": "^1.0.3"
},
"devDependencies": {
"@axe-core/playwright": "^4.13.0",
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.61.1",
"@storybook/addon-a11y": "^10.6.2",
"@storybook/addon-docs": "^10.6.2",
"@storybook/addon-themes": "^10.6.2",
"@storybook/addon-vitest": "^10.6.2",
"@storybook/vue3-vite": "^10.6.2",
"@types/js-cookie": "^3.0.6",
"@types/lodash": "^4.17.16",
"@types/node": "^24.0.0",
"@types/qrcode": "^1.5.5",
"@types/semver": "^7.7.0",
"@types/spark-md5": "^3.0.5",
"@vitejs/plugin-vue": "^6.0.7",
"@vitest/browser-playwright": "^5.0.5",
"@vitest/coverage-v8": "^5.0.5",
"@vitest/ui": "^5.0.5",
"@vue/eslint-config-typescript": "^14.9.0",
"@vue/test-utils": "^2.4.9",
"@vue/tsconfig": "^0.9.1",
"axe-core": "^4.12.1",
"eslint": "^10.0.3",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.5",
"eslint-plugin-import-x": "^4.17.1",
"eslint-plugin-playwright": "^2.12.0",
"eslint-plugin-vue": "^10.8.0",
"eslint-plugin-vuejs-accessibility": "^2.5.0",
"fake-indexeddb": "^6.2.5",
"globals": "^17.0.0",
"happy-dom": "^21.0.0",
"openapi-typescript-codegen": "^0.29.0",
"postcss": "^8.5.23",
"sirv": "^3.0.2",
"storybook": "^10.6.2",
"tsx": "^4.21.0",
"typescript": "^6.0.3",
"vite": "^8.3.4",
"vite-plugin-mkcert": "^2.0.0",
"vite-plugin-pwa": "^2.0.0",
"vitest": "^5.0.5",
"vue-tsc": "^3.3.11"
},
"overrides": {
"rolldown": "1.2.14",
"esbuild": "^0.28.1",
"form-data": "^4.0.6",
"@storybook/addon-vitest": {
"vitest": "$vitest",
"@vitest/browser": "$vitest",
"@vitest/runner": "$vitest",
"@vitest/browser-playwright": "$@vitest/browser-playwright"
}
},
"engines": {
"node": "24",
"npm": ">=11.10"
},
"packageManager": "npm@11.21.1"
}