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:
+2
-4
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user