#/mobile/cards shows the game without the site shell: a title, a footer with the account and a discreet "Version complète" link, and a tab bar fixed at the bottom. Phones opening #/cards are sent to the same section in mobile mode unless the player chose the full version. Account, History and Administration point to the computer. The panels are the computer ones, adapted under .nebula-mobile (and body.nebula-mobile-body for dialogs) for a 393×852 reference phone: small cards with names under them when opening packs, a revealed card shown large on tap, tap-to-pick team recruitment with a single Recruit button and large stars, row lists for explorers and commons in the expedition pickers, a race track and circuit that read at phone size, and full-width actions throughout. Firefox no longer shows a mirrored back on a flipped card. Phone Playwright journeys check that every section fits the screen with no button wrapping, then open a pack, run an expedition and recruit a team by touch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
3.1 KiB
JSON
51 lines
3.1 KiB
JSON
{
|
|
"name": "sokko-g",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"packageManager": "npm@11.17.0",
|
|
"engines": {
|
|
"node": "24.11.x",
|
|
"npm": "11.17.x"
|
|
},
|
|
"scripts": {
|
|
"start": "node server.mjs",
|
|
"dev": "npm run lists:index && vite",
|
|
"build": "npm run lists:index && vite build",
|
|
"preview": "vite preview",
|
|
"lists:index": "node scripts/generate-list-indexes.mjs",
|
|
"lint": "eslint .",
|
|
"lint:cards": "eslint server.mjs vite.config.js services/http.js playwright.cards.config.js scripts/backup-nebula-cards.mjs scripts/start-cards-e2e-server.mjs scripts/simulate-expeditions.mjs scripts/team-specialties.mjs scripts/mirror-illustrations.mjs services/cards tests/nebula-cards.test.mjs tests/nebula-cards-api.test.mjs tests/nebula-cards-daily.test.mjs tests/nebula-cards-expeditions.test.mjs tests/nebula-cards-expedition-balance.test.mjs tests/nebula-cards-expedition-service.test.mjs tests/nebula-cards-team.test.mjs tests/nebula-cards-mirror.test.mjs tests/nebula-cards-mobile.test.mjs tests/server-robustness.test.mjs e2e/nebula-cards.spec.js e2e/nebula-cards-mobile.spec.js e2e/style-layouts.spec.js website/src/features/cards website/src/components/Shell.jsx website/src/main.jsx website/src/router/RouteContent.jsx",
|
|
"check": "node --check server.mjs && node --check vite.config.js && npm run lint && npm run lists:index && npm test && npm run build",
|
|
"check:cards": "node --check server.mjs && node --check vite.config.js && npm run lint:cards && npm run test:cards && npm run test:e2e:cards",
|
|
"check:full": "npm run check && E2E_PORT=4181 npm run test:e2e && npm run test:e2e:production && npm run test:assets && npm run test:e2e:cards",
|
|
"test": "node --test",
|
|
"test:cards": "node --test tests/nebula-cards.test.mjs tests/nebula-cards-api.test.mjs tests/nebula-cards-daily.test.mjs tests/nebula-cards-expeditions.test.mjs tests/nebula-cards-expedition-balance.test.mjs tests/nebula-cards-expedition-service.test.mjs tests/nebula-cards-team.test.mjs tests/nebula-cards-mirror.test.mjs tests/nebula-cards-mobile.test.mjs tests/server-robustness.test.mjs && node --test --test-name-pattern=\"site content json is complete\" tests/data-validation.test.mjs",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:production": "npm run build && playwright test --config playwright.production.config.js",
|
|
"test:e2e:cards": "playwright test --config playwright.cards.config.js",
|
|
"images:convert": "node scripts/convert-public-images.mjs",
|
|
"profile:assets": "npm run build && node scripts/measure-public-assets.mjs",
|
|
"test:assets": "node scripts/measure-public-assets.mjs gate",
|
|
"profile:toolboxes": "npm run build && node scripts/profile-toolbox-loading.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@vitejs/plugin-react": "^6.0.3",
|
|
"react": "^19.2.7",
|
|
"react-dom": "^19.2.7",
|
|
"sharp": "0.35.5",
|
|
"vite": "^8.1.5"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@playwright/test": "^1.62.1",
|
|
"eslint": "^10.8.1",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.4",
|
|
"globals": "^17.11.0",
|
|
"sass": "^1.101.3"
|
|
},
|
|
"allowScripts": {
|
|
"@parcel/watcher": false
|
|
}
|
|
}
|