|
|
@@ -2,31 +2,33 @@
|
|
|
"name": "opendevin-frontend",
|
|
|
"version": "0.1.0",
|
|
|
"private": true,
|
|
|
+ "type": "module",
|
|
|
"dependencies": {
|
|
|
"@testing-library/jest-dom": "^5.17.0",
|
|
|
"@testing-library/react": "^13.4.0",
|
|
|
"@testing-library/user-event": "^13.5.0",
|
|
|
- "@types/jest": "^27.5.2",
|
|
|
- "@types/node": "^16.18.89",
|
|
|
+ "@types/node": "^18.0.0 ",
|
|
|
"@types/react": "^18.2.66",
|
|
|
"@types/react-dom": "^18.2.22",
|
|
|
"@types/react-syntax-highlighter": "^15.5.11",
|
|
|
+ "@vitejs/plugin-react": "^4.2.1",
|
|
|
"@xterm/xterm": "^5.4.0",
|
|
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
|
"react": "^18.2.0",
|
|
|
"react-dom": "^18.2.0",
|
|
|
- "react-scripts": "5.0.1",
|
|
|
"react-syntax-highlighter": "^15.5.0",
|
|
|
"typescript": "^4.9.5",
|
|
|
+ "vite": "^5.1.6",
|
|
|
+ "vite-tsconfig-paths": "^4.3.2",
|
|
|
"web-vitals": "^2.1.4",
|
|
|
"xterm-addon-attach": "^0.9.0",
|
|
|
"xterm-addon-fit": "^0.8.0"
|
|
|
},
|
|
|
"scripts": {
|
|
|
- "start": "react-scripts start",
|
|
|
- "build": "react-scripts build",
|
|
|
- "test": "react-scripts test",
|
|
|
- "eject": "react-scripts eject",
|
|
|
+ "start": "vite",
|
|
|
+ "build": "tsc && vite build",
|
|
|
+ "test": "jest",
|
|
|
+ "preview": "vite preview",
|
|
|
"lint": "eslint src/**/*.ts* && prettier --check src/**/*.ts*",
|
|
|
"prepare": "cd .. && husky install frontend/.husky"
|
|
|
},
|
|
|
@@ -47,20 +49,16 @@
|
|
|
"react-app/jest"
|
|
|
]
|
|
|
},
|
|
|
- "browserslist": {
|
|
|
- "production": [
|
|
|
- ">0.2%",
|
|
|
- "not dead",
|
|
|
- "not op_mini all"
|
|
|
- ],
|
|
|
- "development": [
|
|
|
- "last 1 chrome version",
|
|
|
- "last 1 firefox version",
|
|
|
- "last 1 safari version"
|
|
|
+ "jest": {
|
|
|
+ "preset": "ts-jest/presets/js-with-ts",
|
|
|
+ "testEnvironment": "jest-environment-jsdom",
|
|
|
+ "modulePaths": [
|
|
|
+ "<rootDir>/src"
|
|
|
]
|
|
|
},
|
|
|
"devDependencies": {
|
|
|
- "@typescript-eslint/parser": "^5.62.0",
|
|
|
+ "@types/jest": "^29.5.12",
|
|
|
+ "@typescript-eslint/parser": "^7.0.0",
|
|
|
"eslint": "^8.57.0",
|
|
|
"eslint-config-airbnb": "^19.0.4",
|
|
|
"eslint-config-prettier": "^9.1.0",
|
|
|
@@ -70,7 +68,10 @@
|
|
|
"eslint-plugin-react": "^7.34.1",
|
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
|
"husky": "^8.0.0",
|
|
|
+ "jest": "^29.7.0",
|
|
|
+ "jest-environment-jsdom": "^29.7.0",
|
|
|
"lint-staged": "^15.2.2",
|
|
|
- "prettier": "^3.2.5"
|
|
|
+ "prettier": "^3.2.5",
|
|
|
+ "ts-jest": "^29.1.2"
|
|
|
}
|
|
|
}
|