mirror of
https://github.com/taylanbakircioglu/flowfish.git
synced 2026-09-21 18:13:23 +00:00
8067529530
CRA restricts imports from outside src/. Use build-time environment variable instead: npm scripts read version.json and set REACT_APP_VERSION, which CRA embeds into the bundle via DefinePlugin. Dockerfiles updated to COPY version.json to / so the path resolves correctly inside the container (/app/../version.json = /version.json). Made-with: Cursor
79 lines
2.2 KiB
JSON
79 lines
2.2 KiB
JSON
{
|
|
"name": "flowfish-frontend",
|
|
"version": "1.1.0",
|
|
"description": "Flowfish Platform - Frontend React Application",
|
|
"private": true,
|
|
"homepage": "/",
|
|
"dependencies": {
|
|
"@monaco-editor/react": "^4.6.0",
|
|
"@reduxjs/toolkit": "^1.9.7",
|
|
"@types/node": "^20.8.10",
|
|
"@types/react": "^18.2.33",
|
|
"@types/react-dom": "^18.2.14",
|
|
"@xyflow/react": "^12.9.3",
|
|
"ajv": "^8.12.0",
|
|
"antd": "^5.11.1",
|
|
"axios": "^1.6.0",
|
|
"cytoscape": "^3.26.0",
|
|
"cytoscape-cose-bilkent": "^4.1.0",
|
|
"cytoscape-dagre": "^2.5.0",
|
|
"cytoscape-fcose": "^2.2.0",
|
|
"jspdf": "^4.0.0",
|
|
"jspdf-autotable": "^5.0.7",
|
|
"jszip": "^3.10.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-grid-layout": "^2.2.2",
|
|
"react-redux": "^8.1.3",
|
|
"react-router-dom": "^6.17.0",
|
|
"react-scripts": "5.0.1",
|
|
"socket.io-client": "^4.7.2",
|
|
"typescript": "~4.9.5",
|
|
"web-vitals": "^3.5.0"
|
|
},
|
|
"scripts": {
|
|
"start": "REACT_APP_VERSION=$(node -p \"require('../version.json').version\") react-scripts start",
|
|
"build": "REACT_APP_VERSION=$(node -p \"require('../version.json').version\") DISABLE_ESLINT_PLUGIN=true react-scripts build",
|
|
"test": "react-scripts test",
|
|
"eject": "react-scripts eject",
|
|
"lint": "eslint src --ext .ts,.tsx",
|
|
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
"type-check": "tsc --noEmit"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest"
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
"react-hooks/exhaustive-deps": "warn"
|
|
}
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.1.4",
|
|
"@testing-library/react": "^13.4.0",
|
|
"@testing-library/user-event": "^14.5.1",
|
|
"@types/cytoscape": "^3.19.16",
|
|
"@types/jest": "^29.5.7",
|
|
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
|
"@typescript-eslint/parser": "^6.9.1",
|
|
"eslint": "^8.52.0",
|
|
"eslint-plugin-react": "^7.33.2",
|
|
"eslint-plugin-react-hooks": "^4.6.0"
|
|
},
|
|
"proxy": "http://localhost:8000"
|
|
}
|