feat: Refactor build and service logic

Updated package.json scripts to use Vite for development and building, removing esbuild dependency.
Migrated Gemini AI service logic from a backend API to direct integration using the Google GenAI library. This centralizes AI analysis within the application, improving performance and maintainability.
This commit is contained in:
desartstudio95
2026-05-19 09:40:12 -07:00
parent ef61b58a62
commit a579152114
5 changed files with 270 additions and 862 deletions
+2 -4
View File
@@ -4,9 +4,8 @@
"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",
"dev": "vite --port=3000 --host=0.0.0.0",
"build": "vite build",
"preview": "vite preview",
"clean": "rm -rf dist",
"lint": "tsc --noEmit"
@@ -40,7 +39,6 @@
"@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",