- Implemented StopsMap component to display bus stops on a map using MapLibre GL. - Integrated walking directions feature in WalkingDirections component to calculate routes from user location to selected bus stop. - Added geo utility functions for coordinate validation and distance calculation. - Created route grouping and stop filtering logic in routeGroups module. - Developed custom hooks for managing stop routes with React Query. - Added tests for routing and stop functionalities to ensure reliability.
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "ridebus-pwa",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=22.12.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "node --env-file-if-exists=.env server/index.mjs --dev",
|
|
"build": "tsc -b && vite build",
|
|
"start": "node --env-file-if-exists=.env server/index.mjs",
|
|
"preview": "npm run start",
|
|
"test": "node --test test/*.test.mjs",
|
|
"test:e2e": "playwright test",
|
|
"typecheck": "tsc -b",
|
|
"icons": "node scripts/generate-icons.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/manrope": "^5.3.0",
|
|
"@tanstack/react-query": "^5.104.1",
|
|
"@vkontakte/icons": "^3.75.0",
|
|
"dexie": "^4.4.6",
|
|
"dexie-react-hooks": "^4.4.0",
|
|
"maplibre-gl": "^6.13.0",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"react-router-dom": "^7.18.4"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.63.0",
|
|
"@types/node": "^26.6.4",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^6.1.2",
|
|
"sass": "^1.105.1",
|
|
"sharp": "^0.35.5",
|
|
"typescript": "^7.0.2",
|
|
"vite": "^8.3.3",
|
|
"vite-plugin-pwa": "^2.0.0"
|
|
}
|
|
}
|