Mirrored from GitHub github.com/roostorg/coop

Migrate to vite (#74) master

* ci: Realign Betterer results file with current code base state Fixes: #116 * chore: Lock Node version to v24.14.0 to prevent inconsistency Version selection was delegated to ".nvmrc" file where applicable. Fixes: #111 * client: Install Vite dependencies * client: Add minimal Vite configuration * client: Add vite-env.d.ts * client: Update index.html * client: Update tsconfig.json * client: Call lazy loader explicitly instead of interpolating imported paths * client: Migrate server proxy configuration * client: Migrate transforming SVGs into React components * client: Migrate env variables Variable "NODE_ENV" is no longer used in client. It's been replaced with Vite-specific "MODE" which can be adjusted with "--mode" command line argument and defaults to: - "development" for plain "vite" call - "production" for "build" and "preview" calls Even though server still uses "GOOGLE_PLACES_API_KEY" variable, client now uses "VITE_GOOGLE_PLACES_API_KEY" ("VITE_"-prefixed). This way Vite can access this information. * client: Replace craco commands with vite(st) * client: Remove react-scripts/craco and unused configuration * client: Add a note on slow client start * client: Fix linter errors after migrating to Vite * client: Fix betterer errors after migrating to Vite * client: Add missing Vite plugin configuration * client: Remove unused Jest configuration * ci: Realign Betterer results file with current code base state * fix dockerignore --------- Co-authored-by: Juan S. Mrad <juansmrad@gmail.com>


+3027 -3033
94 changed files