mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Chaining the step onto the build script left `vite build` on its own without compression, and only worked because npm ran the chain. A plugin makes it part of the build itself, so there is nothing to bypass. It runs with enforce: post so the service worker vite-plugin-pwa emits is compressed too, and reads its output directory from the resolved config rather than assuming dist. The precache is generated earlier in the build and still lists no .gz entries. Written here rather than taken off the shelf: vite-plugin-compression was last published in 2022, vite-plugin-brotli caps at vite 7, and vite-plugin-compression2 declares no vite 8 support while depending on @rollup/pluginutils, which this rolldown-based build does not use. Node's zlib covers it in one file with no dependency. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HDXxq3vAxJVGhm1pQuK8V7
114 lines
3.3 KiB
JSON
114 lines
3.3 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 --noEmit",
|
|
"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:watch": "vitest",
|
|
"test:ui": "vitest --ui",
|
|
"storybook": "storybook dev -p 6006",
|
|
"storybook:build": "storybook build",
|
|
"storybook:test": "vitest run test/storybook.test.ts",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:ui": "playwright test --ui"
|
|
},
|
|
"dependencies": {
|
|
"@floating-ui/vue": "^1.1.11",
|
|
"@mdi/font": "7.4.47",
|
|
"@vueuse/core": "^13.7.0",
|
|
"@zxing/browser": "^0.1.5",
|
|
"@zxing/library": "^0.21.3",
|
|
"axios": "^1.18.1",
|
|
"bowser": "^2.14.1",
|
|
"cronstrue": "^2.57.0",
|
|
"date-fns": "^4.1.0",
|
|
"js-cookie": "^3.0.7",
|
|
"lodash": "^4.18.1",
|
|
"md-editor-v3": "^5.8.4",
|
|
"mitt": "^3.0.1",
|
|
"pinia": "^3.0.1",
|
|
"qrcode": "^1.5.4",
|
|
"semver": "^7.6.2",
|
|
"socket.io-client": "^4.7.5",
|
|
"tailwindcss": "^4.0.0",
|
|
"vanilla-tilt": "^1.8.1",
|
|
"vue": "^3.4.27",
|
|
"vue-i18n": "^11.1.10",
|
|
"vue-router": "^4.3.2",
|
|
"vue3-pdf-app": "^1.0.3",
|
|
"vuetify": "^3.9.2"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@playwright/test": "^1.61.1",
|
|
"@storybook/addon-a11y": "^10.2.19",
|
|
"@storybook/addon-docs": "^10.2.19",
|
|
"@storybook/addon-themes": "^10.2.19",
|
|
"@storybook/vue3-vite": "^10.2.19",
|
|
"@tailwindcss/vite": "^4.3.1",
|
|
"@types/js-cookie": "^3.0.6",
|
|
"@types/lodash": "^4.17.16",
|
|
"@types/node": "^22.13.14",
|
|
"@types/qrcode": "^1.5.5",
|
|
"@types/semver": "^7.7.0",
|
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
"@vitest/ui": "^4.1.5",
|
|
"@vue/test-utils": "^2.4.9",
|
|
"@vue/tsconfig": "^0.7.0",
|
|
"axe-core": "^4.12.1",
|
|
"browserslist": "^4.28.8",
|
|
"eslint": "^10.0.3",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-vue": "^10.8.0",
|
|
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
"globals": "^16.0.0",
|
|
"happy-dom": "^20.9.0",
|
|
"openapi-typescript-codegen": "^0.29.0",
|
|
"storybook": "^10.2.19",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.7.3",
|
|
"typescript-eslint": "^8.56.1",
|
|
"vite": "^8.0.16",
|
|
"vite-plugin-mkcert": "^1.17.8",
|
|
"vite-plugin-pwa": "^1.3.0",
|
|
"vite-plugin-vuetify": "^2.0.4",
|
|
"vitest": "^4.1.11",
|
|
"vue-tsc": "^2.2.8"
|
|
},
|
|
"overrides": {
|
|
"rolldown": "1.0.1",
|
|
"esbuild": "^0.28.1",
|
|
"form-data": "^4.0.6"
|
|
},
|
|
"engines": {
|
|
"node": "24",
|
|
"npm": ">=11.10"
|
|
},
|
|
"packageManager": "npm@11.13.0"
|
|
}
|