package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. "name": "dify-web",
  3. "version": "0.6.6",
  4. "private": true,
  5. "scripts": {
  6. "dev": "next dev",
  7. "build": "next build",
  8. "start": "cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && cross-env PORT=$npm_config_port HOSTNAME=$npm_config_host node .next/standalone/server.js",
  9. "lint": "next lint",
  10. "fix": "next lint --fix",
  11. "eslint-fix": "eslint --fix",
  12. "prepare": "cd ../ && node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install ./web/.husky",
  13. "gen-icons": "node ./app/components/base/icons/script.js",
  14. "uglify-embed": "node ./bin/uglify-embed",
  15. "check-i18n": "node ./i18n/script.js"
  16. },
  17. "dependencies": {
  18. "@babel/runtime": "^7.22.3",
  19. "@emoji-mart/data": "^1.1.2",
  20. "@floating-ui/react": "^0.25.2",
  21. "@formatjs/intl-localematcher": "^0.5.4",
  22. "@headlessui/react": "^1.7.13",
  23. "@heroicons/react": "^2.0.16",
  24. "@lexical/react": "^0.12.2",
  25. "@mdx-js/loader": "^2.3.0",
  26. "@mdx-js/react": "^2.3.0",
  27. "@monaco-editor/react": "^4.6.0",
  28. "@next/mdx": "^14.0.4",
  29. "@sentry/react": "^7.54.0",
  30. "@sentry/utils": "^7.54.0",
  31. "@tailwindcss/line-clamp": "^0.4.4",
  32. "@tailwindcss/typography": "^0.5.9",
  33. "ahooks": "^3.7.5",
  34. "classnames": "^2.3.2",
  35. "copy-to-clipboard": "^3.3.3",
  36. "crypto-js": "^4.2.0",
  37. "dagre": "^0.8.5",
  38. "dayjs": "^1.11.7",
  39. "echarts": "^5.4.1",
  40. "echarts-for-react": "^3.0.2",
  41. "emoji-mart": "^5.5.2",
  42. "i18next": "^22.4.13",
  43. "i18next-resources-to-backend": "^1.1.3",
  44. "immer": "^9.0.19",
  45. "js-audio-recorder": "^1.0.7",
  46. "js-cookie": "^3.0.1",
  47. "katex": "^0.16.10",
  48. "lamejs": "^1.2.1",
  49. "lexical": "^0.12.2",
  50. "lodash-es": "^4.17.21",
  51. "mermaid": "10.4.0",
  52. "negotiator": "^0.6.3",
  53. "next": "^14.0.4",
  54. "next-nprogress-bar": "^2.3.8",
  55. "qrcode.react": "^3.1.0",
  56. "qs": "^6.11.1",
  57. "rc-textarea": "^1.5.2",
  58. "react": "^18.2.0",
  59. "react-18-input-autosize": "^3.0.0",
  60. "react-dom": "^18.2.0",
  61. "react-error-boundary": "^4.0.2",
  62. "react-headless-pagination": "^1.1.4",
  63. "react-i18next": "^12.2.0",
  64. "react-infinite-scroll-component": "^6.1.0",
  65. "react-markdown": "^8.0.6",
  66. "react-multi-email": "^1.0.14",
  67. "react-papaparse": "^4.1.0",
  68. "react-slider": "^2.0.4",
  69. "react-sortablejs": "^6.1.4",
  70. "react-syntax-highlighter": "^15.5.0",
  71. "react-tooltip": "5.8.3",
  72. "react-window": "^1.8.9",
  73. "react-window-infinite-loader": "^1.0.9",
  74. "reactflow": "^11.10.3",
  75. "recordrtc": "^5.6.2",
  76. "rehype-katex": "^6.0.2",
  77. "remark-breaks": "^3.0.2",
  78. "remark-gfm": "^3.0.1",
  79. "remark-math": "^5.1.1",
  80. "scheduler": "^0.23.0",
  81. "server-only": "^0.0.1",
  82. "sharp": "^0.33.2",
  83. "sortablejs": "^1.15.0",
  84. "swr": "^2.1.0",
  85. "use-context-selector": "^1.4.1",
  86. "uuid": "^9.0.1",
  87. "zustand": "^4.5.1"
  88. },
  89. "devDependencies": {
  90. "@antfu/eslint-config": "^0.36.0",
  91. "@faker-js/faker": "^7.6.0",
  92. "@rgrove/parse-xml": "^4.1.0",
  93. "@types/crypto-js": "^4.1.1",
  94. "@types/dagre": "^0.7.52",
  95. "@types/js-cookie": "^3.0.3",
  96. "@types/lodash-es": "^4.17.7",
  97. "@types/negotiator": "^0.6.1",
  98. "@types/node": "18.15.0",
  99. "@types/qs": "^6.9.7",
  100. "@types/react": "^18.3.1",
  101. "@types/react-dom": "18.0.11",
  102. "@types/react-slider": "^1.3.1",
  103. "@types/react-syntax-highlighter": "^15.5.6",
  104. "@types/react-window": "^1.8.5",
  105. "@types/react-window-infinite-loader": "^1.0.6",
  106. "@types/recordrtc": "^5.6.11",
  107. "@types/sortablejs": "^1.15.1",
  108. "@types/uuid": "^9.0.8",
  109. "autoprefixer": "^10.4.14",
  110. "code-inspector-plugin": "^0.13.0",
  111. "cross-env": "^7.0.3",
  112. "eslint": "^8.36.0",
  113. "eslint-config-next": "^14.0.4",
  114. "husky": "^8.0.3",
  115. "lint-staged": "^13.2.2",
  116. "postcss": "^8.4.31",
  117. "sass": "^1.61.0",
  118. "tailwindcss": "^3.3.3",
  119. "typescript": "4.9.5",
  120. "uglify-js": "^3.17.4"
  121. },
  122. "lint-staged": {
  123. "**/*.js?(x)": [
  124. "eslint --fix"
  125. ],
  126. "**/*.ts?(x)": [
  127. "eslint --fix"
  128. ]
  129. },
  130. "engines": {
  131. "node": ">=18.17.0"
  132. }
  133. }