2
0

package.json 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. {
  2. "name": "apisix-dashboard",
  3. "version": "3.0.0",
  4. "private": true,
  5. "description": "Dashboard for Apache APISIX",
  6. "scripts": {
  7. "prepare": "cd .. && husky install web/.husky",
  8. "analyze": "cross-env ANALYZE=1 yarn run build",
  9. "copy-folder": "node --experimental-modules copy-folder.mjs",
  10. "build": "yarn copy-folder monaco-editor ./public/ && NODE_OPTIONS=--max_old_space_size=4096 umi build",
  11. "dev": "yarn run start:dev",
  12. "fetch:blocks": "pro fetch-blocks --branch antd@4 && yarn run prettier",
  13. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  14. "postinstall": "umi g tmp",
  15. "lint": "umi g tmp && yarn run lint:js && yarn run lint:style && yarn run lint:prettier",
  16. "lint-staged": "lint-staged",
  17. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  18. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && yarn run lint:style",
  19. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  20. "lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
  21. "lint:style": "stylelint --fix \"src/**/*.less\"",
  22. "prettier": "prettier -c --write \"**/*\"",
  23. "site": "yarn run fetch:blocks && yarn run build",
  24. "start": "yarn copy-folder monaco-editor ./public/ && umi dev",
  25. "start:e2e": "cross-env SERVE_ENV=test yarn run start",
  26. "test:e2e": "start-server-and-test 'cross-env SERVE_ENV=test yarn start' http-get://localhost:8000 cypress:run-ci",
  27. "test-plugin:e2e": "start-server-and-test 'cross-env SERVE_ENV=test yarn start' http-get://localhost:8000 cypress:run-plugin-ci",
  28. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none yarn run start",
  29. "start:no-mock": "cross-env MOCK=none yarn run start",
  30. "start:no-ui": "cross-env UMI_UI=none yarn run start",
  31. "start:pre": "cross-env REACT_APP_ENV=pre yarn run start",
  32. "start:test": "cross-env REACT_APP_ENV=test MOCK=none yarn run start",
  33. "test:component": "umi test ./src/components",
  34. "tsc": "tsc",
  35. "cypress:open": "cross-env CYPRESS_SERVE_ENV=test cypress open",
  36. "cypress:open-dev": "cross-env CYPRESS_SERVE_ENV=dev cypress open",
  37. "cypress:run-ci": "cross-env CYPRESS_SERVE_ENV=test cypress run",
  38. "cypress:run-plugin-ci": "cross-env CYPRESS_SERVE_ENV=test cypress run --spec 'cypress/e2e/plugin/*.cy.js'"
  39. },
  40. "license": "Apache-2.0",
  41. "lint-staged": {
  42. "**/*.less": "stylelint",
  43. "**/*.{js,jsx,ts,tsx}": "yarn run lint-staged:js",
  44. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  45. "prettier --write"
  46. ]
  47. },
  48. "browserslist": [
  49. "> 1%",
  50. "last 2 versions",
  51. "not ie <= 10"
  52. ],
  53. "dependencies": {
  54. "@ant-design/icons": "^4.0.0",
  55. "@ant-design/pro-layout": "^6.0.0",
  56. "@ant-design/pro-table": "2.30.8",
  57. "@antv/x6": "^1.18.5",
  58. "@antv/x6-react-components": "^1.1.7",
  59. "@monaco-editor/react": "4.3.1",
  60. "@rjsf/antd": "2.2.0",
  61. "@rjsf/core": "2.2.0",
  62. "@types/js-yaml": "^4.0.0",
  63. "ahooks": "^3.7.1",
  64. "ajv": "^7.0.3",
  65. "ajv-formats": "^1.5.1",
  66. "antd": "^4.4.0",
  67. "base-64": "^1.0.0",
  68. "classnames": "^2.2.6",
  69. "dayjs": "1.8.28",
  70. "dotenv": "^16.0.1",
  71. "eslint-plugin-import": "^2.26.0",
  72. "eslint-plugin-simple-import-sort": "^8.0.0",
  73. "file-saver": "^2.0.5",
  74. "hexo-fs": "^3.1.0",
  75. "js-beautify": "^1.13.0",
  76. "js-yaml": "^4.0.0",
  77. "lodash": "^4.17.11",
  78. "moment": "^2.29.2",
  79. "nzh": "1.0.4",
  80. "omit.js": "^2.0.2",
  81. "path-to-regexp": "2.4.0",
  82. "qs": "^6.9.0",
  83. "query-string": "^6.13.7",
  84. "react": "^16.8.6",
  85. "react-copy-to-clipboard": "^5.0.3",
  86. "react-device-detect": "^1.12.1",
  87. "react-dom": "^16.8.6",
  88. "react-helmet-async": "^1.0.4",
  89. "start-server-and-test": "^1.11.5",
  90. "styled-components": "^5.2.1",
  91. "umi": "^3.1.2",
  92. "umi-request": "^1.0.8",
  93. "use-merge-value": "^1.0.1",
  94. "uuid": "7.0.3",
  95. "yaml": "^1.10.0"
  96. },
  97. "devDependencies": {
  98. "@4tw/cypress-drag-drop": "^1.6.0",
  99. "@ant-design/pro-cli": "^2.0.2",
  100. "@cypress/code-coverage": "^3.10.0",
  101. "@types/base-64": "^0.1.3",
  102. "@types/classnames": "^2.2.7",
  103. "@types/express": "^4.17.0",
  104. "@types/file-saver": "^2.0.1",
  105. "@types/formdata": "^0.10.0",
  106. "@types/history": "^4.7.2",
  107. "@types/jest": "^26.0.0",
  108. "@types/js-beautify": "^1.13.1",
  109. "@types/js-yaml": "^4.0.0",
  110. "@types/lodash": "^4.14.144",
  111. "@types/node-forge": "0.9.3",
  112. "@types/qs": "^6.5.3",
  113. "@types/react": "^16.9.17",
  114. "@types/react-copy-to-clipboard": "^5.0.0",
  115. "@types/react-dom": "^16.8.4",
  116. "@types/react-helmet": "^5.0.13",
  117. "@types/styled-components": "^5.1.7",
  118. "@types/uuid": "7.0.4",
  119. "@umijs/fabric": "^2.2.0",
  120. "@umijs/plugin-blocks": "^2.0.5",
  121. "@umijs/plugin-esbuild": "^1.0.0-beta.2",
  122. "@umijs/preset-ant-design-pro": "^1.2.0",
  123. "@umijs/preset-react": "^1.7.11",
  124. "@umijs/preset-ui": "^2.1.11",
  125. "babel-plugin-istanbul": "^6.0.0",
  126. "carlo": "^0.9.46",
  127. "cross-env": "^7.0.0",
  128. "cross-port-killer": "^1.1.1",
  129. "cypress": "^10.4.0",
  130. "cypress-file-upload": "^5.0.2",
  131. "cypress-localstorage-commands": "^2.2.0",
  132. "detect-installer": "^1.0.1",
  133. "enzyme": "^3.11.0",
  134. "eslint": "^7.1.0",
  135. "eslint-plugin-eslint-comments": "^3.2.0",
  136. "express": "^4.17.1",
  137. "husky": "^6.0.0",
  138. "lint-staged": "^10.0.0",
  139. "mockjs": "^1.0.1-beta3",
  140. "monaco-editor": "^0.32.1",
  141. "pinst": "^2.1.1",
  142. "postcss": "^8.4.16",
  143. "postcss-less": "^6.0.0",
  144. "prettier": "^2.0.1",
  145. "pro-download": "1.0.1",
  146. "puppeteer-core": "^4.0.1",
  147. "stylelint": "^14.10.0",
  148. "stylelint-config-css-modules": "^4.1.0",
  149. "stylelint-config-prettier": "^9.0.3",
  150. "stylelint-config-standard-scss": "^5.0.0",
  151. "stylelint-declaration-block-no-ignored-properties": "^2.5.0",
  152. "stylelint-order": "^5.0.0"
  153. },
  154. "engines": {
  155. "node": ">=10.0.0"
  156. },
  157. "checkFiles": [
  158. "src/**/*.js*",
  159. "src/**/*.ts*",
  160. "src/**/*.less",
  161. "config/**/*.js*",
  162. "scripts/**/*.js"
  163. ]
  164. }