WHY: migrating from Supabase BaaS to self-hosted iloom backend (Go microservices) deployed on K3s. Supabase client and realtime subscriptions no longer applicable. HOW: - add src/api/ layer (client.ts, auth.ts, purchaser.ts, textile.ts, washing.ts, websocket.ts) targeting iloom-gateway REST endpoints - rewrite all hooks (usePlanData, useInventoryData, useDashboardData, useRealtime, etc.) to use new API client instead of Supabase queries - rewrite all page/component data fetching and mutations accordingly - delete src/supabase/client.ts, remove @supabase/supabase-js dep - add Dockerfile (multi-stage node build + nginx) and nginx.conf with reverse proxy to iloom-gateway for /api/ and /ws/ routes - adjust webpack.config.js for API_URL environment variable injection Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
56 lines
1.6 KiB
JSON
56 lines
1.6 KiB
JSON
{
|
|
"name": "procurement-planning",
|
|
"version": "1.0.31",
|
|
"scripts": {
|
|
"dev": "webpack serve",
|
|
"build": "webpack --mode production",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"e2e": "playwright test",
|
|
"e2e:ui": "playwright test --ui"
|
|
},
|
|
"dependencies": {
|
|
"@emotion/is-prop-valid": "^1.4.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-router-dom": "^6.8.0",
|
|
"recharts": "^2.10.0",
|
|
"date-fns": "^2.30.0",
|
|
"framer-motion": "^11.16.1",
|
|
"lucide-react": "^0.294.0",
|
|
"zustand": "^4.4.7",
|
|
"immer": "^10.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.23.5",
|
|
"@babel/preset-env": "^7.23.5",
|
|
"@babel/preset-react": "^7.23.5",
|
|
"@babel/preset-typescript": "^7.23.5",
|
|
"@playwright/test": "^1.40.0",
|
|
"@testing-library/jest-dom": "^6.1.5",
|
|
"@testing-library/react": "^14.1.2",
|
|
"@testing-library/react-hooks": "^8.0.1",
|
|
"@types/jest": "^29.5.11",
|
|
"@types/react": "^18.2.0",
|
|
"@types/react-dom": "^18.2.0",
|
|
"autoprefixer": "^10.4.16",
|
|
"babel-loader": "^9.1.3",
|
|
"css-loader": "^6.8.1",
|
|
"html-webpack-plugin": "^5.5.3",
|
|
"jest": "^29.7.0",
|
|
"jest-environment-jsdom": "^29.7.0",
|
|
"postcss": "^8.4.31",
|
|
"postcss-loader": "^7.3.3",
|
|
"style-loader": "^3.3.3",
|
|
"tailwindcss": "^3.3.5",
|
|
"ts-jest": "^29.1.1",
|
|
"typescript": "^5.3.3",
|
|
"webpack": "^5.89.0",
|
|
"webpack-cli": "^5.1.4",
|
|
"webpack-dev-server": "^4.15.1",
|
|
"terser-webpack-plugin": "^5.3.9"
|
|
}
|
|
}
|