package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. "name": "openhands-frontend",
  3. "version": "0.12.0",
  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.176.0",
  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 && VITE_MOCK_API=false remix vite:dev",
  49. "dev:mock": "npm run make-i18n && 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:coverage": "npm run make-i18n && vitest run --coverage",
  54. "dev_wsl": "VITE_WATCH_USE_POLLING=true vite",
  55. "preview": "vite preview",
  56. "make-i18n": "node scripts/make-i18n-translations.cjs",
  57. "prelint": "npm run make-i18n",
  58. "lint": "eslint src --ext .ts,.tsx,.js && prettier --check src/**/*.{ts,tsx}",
  59. "lint:fix": "eslint src --ext .ts,.tsx,.js --fix && prettier --write src/**/*.{ts,tsx}",
  60. "prepare": "cd .. && husky frontend/.husky"
  61. },
  62. "husky": {
  63. "hooks": {
  64. "pre-commit": "npm run test && lint-staged"
  65. }
  66. },
  67. "lint-staged": {
  68. "src/**/*.{ts,tsx,js}": [
  69. "eslint --fix",
  70. "prettier --write"
  71. ]
  72. },
  73. "devDependencies": {
  74. "@remix-run/dev": "^2.11.2",
  75. "@remix-run/testing": "^2.11.2",
  76. "@tailwindcss/typography": "^0.5.15",
  77. "@testing-library/jest-dom": "^6.6.1",
  78. "@testing-library/react": "^16.0.1",
  79. "@testing-library/user-event": "^14.5.2",
  80. "@types/node": "^22.7.6",
  81. "@types/react": "^18.3.11",
  82. "@types/react-dom": "^18.3.0",
  83. "@types/react-highlight": "^0.12.8",
  84. "@types/react-syntax-highlighter": "^15.5.13",
  85. "@types/ws": "^8.5.12",
  86. "@typescript-eslint/eslint-plugin": "^7.18.0",
  87. "@typescript-eslint/parser": "^7.18.0",
  88. "@vitest/coverage-v8": "^1.6.0",
  89. "autoprefixer": "^10.4.20",
  90. "eslint": "^8.57.0",
  91. "eslint-config-airbnb": "^19.0.4",
  92. "eslint-config-airbnb-typescript": "^18.0.0",
  93. "eslint-config-prettier": "^9.1.0",
  94. "eslint-plugin-import": "^2.29.1",
  95. "eslint-plugin-jsx-a11y": "^6.9.0",
  96. "eslint-plugin-prettier": "^5.2.1",
  97. "eslint-plugin-react": "^7.35.0",
  98. "eslint-plugin-react-hooks": "^4.6.2",
  99. "husky": "^9.1.6",
  100. "jsdom": "^25.0.1",
  101. "lint-staged": "^15.2.10",
  102. "msw": "^2.3.0-ws.rc-12",
  103. "postcss": "^8.4.47",
  104. "prettier": "^3.3.3",
  105. "tailwindcss": "^3.4.14",
  106. "typescript": "^5.6.3",
  107. "vite-plugin-svgr": "^4.2.0",
  108. "vite-tsconfig-paths": "^5.0.1",
  109. "vitest": "^1.6.0"
  110. },
  111. "packageManager": "npm@10.5.0",
  112. "volta": {
  113. "node": "18.20.1"
  114. },
  115. "msw": {
  116. "workerDirectory": [
  117. "public"
  118. ]
  119. }
  120. }