Files
QuantScan-Pro-/package.json
T
desartstudio95 ab0b842fca feat: Refactor Gemini integration and build process
This commit centralizes Gemini API interaction into a new `server.ts` file and removes it from the client-side `geminiService.ts`.
It also updates the build process in `package.json` to use `esbuild` for bundling the server code, enabling a more robust build pipeline.
The `index.html` has been cleaned up by removing unnecessary OneSignal SDK initialization.
Additionally, dev dependencies have been updated, including `esbuild` to version `0.28.0`.
A new `test2.ts` file is added for testing Gemini API connectivity.
2026-05-18 10:00:07 -07:00

52 lines
1.4 KiB
JSON

{
"name": "react-example",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "tsx server.ts",
"build": "vite build && esbuild server.ts --bundle --platform=node --format=cjs --packages=external --sourcemap --outfile=dist/server.cjs",
"start": "node dist/server.cjs",
"preview": "vite preview",
"clean": "rm -rf dist",
"lint": "tsc --noEmit"
},
"dependencies": {
"@base-ui/react": "^1.4.1",
"@fontsource-variable/geist": "^5.2.8",
"@google/genai": "^1.29.0",
"@tailwindcss/vite": "^4.1.14",
"@vitejs/plugin-react": "^5.0.4",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dotenv": "^17.2.3",
"embla-carousel-autoplay": "^8.6.0",
"embla-carousel-react": "^8.6.0",
"express": "^4.21.2",
"firebase": "^12.12.1",
"lucide-react": "^0.546.0",
"motion": "^12.23.24",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-dropzone": "^15.0.0",
"recharts": "^3.8.1",
"shadcn": "^4.7.0",
"tailwind-merge": "^3.5.0",
"tw-animate-css": "^1.4.0",
"vite": "^6.2.0"
},
"devDependencies": {
"@firebase/rules-unit-testing": "^5.0.0",
"@types/express": "^4.17.21",
"@types/node": "^22.14.0",
"autoprefixer": "^10.4.21",
"esbuild": "^0.28.0",
"eslint": "^10.2.1",
"tailwindcss": "^4.1.14",
"ts-node": "^10.9.2",
"tsx": "^4.21.0",
"typescript": "~5.8.2",
"vite": "^6.2.0"
}
}