package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "name": "openhands-frontend",
  3. "version": "0.14.1",
  4. "private": true,
  5. "type": "module",
  6. "engines": {
  7. "node": ">=20.0.0"
  8. },
  9. "dependencies": {
  10. "@monaco-editor/react": "^4.6.0",
  11. "@nextui-org/react": "^2.4.8",
  12. "@react-types/shared": "^3.25.0",
  13. "@reduxjs/toolkit": "^2.3.0",
  14. "@remix-run/node": "^2.11.2",
  15. "@remix-run/react": "^2.11.2",
  16. "@remix-run/serve": "^2.11.2",
  17. "@vitejs/plugin-react": "^4.3.2",
  18. "@xterm/addon-fit": "^0.10.0",
  19. "@xterm/xterm": "^5.4.0",
  20. "clsx": "^2.1.1",
  21. "eslint-config-airbnb-typescript": "^18.0.0",
  22. "i18next": "^23.15.2",
  23. "i18next-browser-languagedetector": "^8.0.0",
  24. "i18next-http-backend": "^2.6.2",
  25. "isbot": "^5.1.17",
  26. "jose": "^5.9.4",
  27. "monaco-editor": "^0.52.0",
  28. "posthog-js": "^1.184.1",
  29. "react": "^18.3.1",
  30. "react-dom": "^18.3.1",
  31. "react-highlight": "^0.15.0",
  32. "react-hot-toast": "^2.4.1",
  33. "react-i18next": "^15.0.2",
  34. "react-icons": "^5.3.0",
  35. "react-markdown": "^9.0.1",
  36. "react-redux": "^9.1.2",
  37. "react-router-dom": "^6.26.1",
  38. "react-syntax-highlighter": "^15.6.1",
  39. "react-textarea-autosize": "^8.5.4",
  40. "remark-gfm": "^4.0.0",
  41. "sirv-cli": "^3.0.0",
  42. "tailwind-merge": "^2.5.4",
  43. "vite": "^5.4.9",
  44. "web-vitals": "^3.5.2",
  45. "ws": "^8.18.0"
  46. },
  47. "scripts": {
  48. "dev": "npm run make-i18n && cross-env VITE_MOCK_API=false remix vite:dev",
  49. "dev:mock": "npm run make-i18n && cross-env VITE_MOCK_API=true remix vite:dev",
  50. "build": "npm run make-i18n && tsc && remix vite:build",
  51. "start": "npx sirv-cli build/ --single",
  52. "test": "vitest run",
  53. "test:e2e": "playwright test",
  54. "test:coverage": "npm run make-i18n && vitest run --coverage",
  55. "dev_wsl": "VITE_WATCH_USE_POLLING=true vite",
  56. "preview": "vite preview",
  57. "make-i18n": "node scripts/make-i18n-translations.cjs",
  58. "prelint": "npm run make-i18n",
  59. "lint": "eslint src --ext .ts,.tsx,.js && prettier --check src/**/*.{ts,tsx}",
  60. "lint:fix": "eslint src --ext .ts,.tsx,.js --fix && prettier --write src/**/*.{ts,tsx}",
  61. "prepare": "cd .. && husky frontend/.husky"
  62. },
  63. "husky": {
  64. "hooks": {
  65. "pre-commit": "npm run test && lint-staged"
  66. }
  67. },
  68. "lint-staged": {
  69. "src/**/*.{ts,tsx,js}": [
  70. "eslint --fix",
  71. "prettier --write"
  72. ]
  73. },
  74. "devDependencies": {
  75. "@playwright/test": "^1.48.2",
  76. "@remix-run/dev": "^2.11.2",
  77. "@remix-run/testing": "^2.11.2",
  78. "@tailwindcss/typography": "^0.5.15",
  79. "@testing-library/jest-dom": "^6.6.1",
  80. "@testing-library/react": "^16.0.1",
  81. "@testing-library/user-event": "^14.5.2",
  82. "@types/node": "^22.7.6",
  83. "@types/react": "^18.3.11",
  84. "@types/react-dom": "^18.3.0",
  85. "@types/react-highlight": "^0.12.8",
  86. "@types/react-syntax-highlighter": "^15.5.13",
  87. "@types/ws": "^8.5.12",
  88. "@typescript-eslint/eslint-plugin": "^7.18.0",
  89. "@typescript-eslint/parser": "^7.18.0",
  90. "@vitest/coverage-v8": "^1.6.0",
  91. "autoprefixer": "^10.4.20",
  92. "cross-env": "^7.0.3",
  93. "eslint": "^8.57.0",
  94. "eslint-config-airbnb": "^19.0.4",
  95. "eslint-config-airbnb-typescript": "^18.0.0",
  96. "eslint-config-prettier": "^9.1.0",
  97. "eslint-plugin-import": "^2.29.1",
  98. "eslint-plugin-jsx-a11y": "^6.9.0",
  99. "eslint-plugin-prettier": "^5.2.1",
  100. "eslint-plugin-react": "^7.35.0",
  101. "eslint-plugin-react-hooks": "^4.6.2",
  102. "husky": "^9.1.6",
  103. "jsdom": "^25.0.1",
  104. "lint-staged": "^15.2.10",
  105. "msw": "^2.3.0-ws.rc-12",
  106. "postcss": "^8.4.47",
  107. "prettier": "^3.3.3",
  108. "tailwindcss": "^3.4.14",
  109. "typescript": "^5.6.3",
  110. "vite-plugin-svgr": "^4.2.0",
  111. "vite-tsconfig-paths": "^5.0.1",
  112. "vitest": "^1.6.0"
  113. },
  114. "packageManager": "npm@10.5.0",
  115. "volta": {
  116. "node": "18.20.1"
  117. },
  118. "msw": {
  119. "workerDirectory": [
  120. "public"
  121. ]
  122. }
  123. }