package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "name": "match-vote-admin",
  3. "version": "6.0.0",
  4. "private": true,
  5. "description": "An out-of-box UI solution for enterprise applications",
  6. "repository": "git@github.com:ant-design/ant-design-pro.git",
  7. "scripts": {
  8. "analyze": "cross-env ANALYZE=1 max build",
  9. "build": "max build",
  10. "deploy": "npm run build && npm run gh-pages",
  11. "dev": "npm run start:dev",
  12. "gh-pages": "gh-pages -d dist",
  13. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  14. "postinstall": "max setup",
  15. "jest": "jest",
  16. "lint": "npm run lint:js && npm run lint:prettier && npm run tsc",
  17. "lint-staged": "lint-staged",
  18. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  19. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ",
  20. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  21. "lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
  22. "openapi": "max openapi",
  23. "prepare": "husky install",
  24. "prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
  25. "preview": "npm run build && max preview --port 8000",
  26. "record": "cross-env NODE_ENV=development REACT_APP_ENV=test max record --scene=login",
  27. "serve": "umi-serve",
  28. "start": "cross-env UMI_ENV=dev max dev",
  29. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev max dev",
  30. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev max dev",
  31. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev max dev",
  32. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev max dev",
  33. "test": "jest",
  34. "test:coverage": "npm run jest -- --coverage",
  35. "test:update": "npm run jest -- -u",
  36. "tsc": "tsc --noEmit"
  37. },
  38. "lint-staged": {
  39. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  40. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  41. "prettier --write"
  42. ]
  43. },
  44. "browserslist": [
  45. "> 1%",
  46. "last 2 versions",
  47. "not ie <= 10"
  48. ],
  49. "dependencies": {
  50. "@ant-design/icons": "^4.8.3",
  51. "@ant-design/pro-components": "^2.7.19",
  52. "@testing-library/dom": "^10.4.0",
  53. "antd": "^5.21.1",
  54. "antd-style": "^3.6.3",
  55. "classnames": "^2.5.1",
  56. "dayjs": "^1.11.13",
  57. "querystring": "^0.2.1",
  58. "react": "^18.3.1",
  59. "react-dom": "^18.3.1",
  60. "react-error-overlay": "^6.0.11"
  61. },
  62. "devDependencies": {
  63. "@ant-design/pro-cli": "^3.3.0",
  64. "@testing-library/react": "^16.0.1",
  65. "@types/classnames": "^2.3.1",
  66. "@types/express": "^4.17.21",
  67. "@types/history": "^4.7.11",
  68. "@types/jest": "^29.5.13",
  69. "@types/lodash": "^4.17.9",
  70. "@types/react": "^18.3.10",
  71. "@types/react-dom": "^18.3.0",
  72. "@types/react-helmet": "^6.1.11",
  73. "@umijs/fabric": "^2.14.1",
  74. "@umijs/lint": "^4.3.24",
  75. "@umijs/max": "^4.3.24",
  76. "cross-env": "^7.0.3",
  77. "eslint": "^8.57.1",
  78. "express": "^4.21.0",
  79. "gh-pages": "^3.2.3",
  80. "husky": "^7.0.4",
  81. "jest": "^29.7.0",
  82. "jest-environment-jsdom": "^29.7.0",
  83. "lint-staged": "^10.5.4",
  84. "mockjs": "^1.1.0",
  85. "prettier": "^2.8.8",
  86. "react-dev-inspector": "^1.9.0",
  87. "swagger-ui-dist": "^4.19.1",
  88. "ts-node": "^10.9.2",
  89. "typescript": "^5.6.2",
  90. "umi-presets-pro": "^2.0.3",
  91. "umi-serve": "^1.9.11"
  92. },
  93. "engines": {
  94. "node": ">=12.0.0"
  95. }
  96. }