package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "name": "ant-design-pro",
  3. "version": "5.0.0-beta.2",
  4. "private": true,
  5. "description": "An out-of-box UI solution for enterprise applications",
  6. "scripts": {
  7. "analyze": "cross-env ANALYZE=1 umi build",
  8. "build": "umi build",
  9. "deploy": "npm run site && npm run gh-pages",
  10. "dev": "npm run start:dev",
  11. "gh-pages": "gh-pages -d dist",
  12. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  13. "postinstall": "umi g tmp",
  14. "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
  15. "lint-staged": "lint-staged",
  16. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  17. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
  18. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  19. "lint:prettier": "prettier --check \"src/**/*\" --end-of-line auto",
  20. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  21. "precommit": "lint-staged",
  22. "prettier": "prettier -c --write \"src/**/*\"",
  23. "start": "umi dev",
  24. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none umi dev",
  25. "start:no-mock": "cross-env MOCK=none umi dev",
  26. "start:no-ui": "cross-env UMI_UI=none umi dev",
  27. "start:pre": "cross-env REACT_APP_ENV=pre umi dev",
  28. "start:test": "cross-env REACT_APP_ENV=test MOCK=none umi dev",
  29. "pretest": "node ./tests/beforeTest",
  30. "test": "umi test",
  31. "test:all": "node ./tests/run-tests.js",
  32. "test:component": "umi test ./src/components",
  33. "tsc": "tsc --noEmit"
  34. },
  35. "lint-staged": {
  36. "**/*.less": "stylelint --syntax less",
  37. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  38. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  39. "prettier --write"
  40. ]
  41. },
  42. "browserslist": [
  43. "> 1%",
  44. "last 2 versions",
  45. "not ie <= 10"
  46. ],
  47. "dependencies": {
  48. "@ant-design/compatible": "^1.0.8",
  49. "@ant-design/dark-theme": "^2.0.2",
  50. "@ant-design/icons": "^4.0.0",
  51. "@ant-design/pro-descriptions": "^1.0.19",
  52. "@ant-design/pro-form": "^1.3.0",
  53. "@ant-design/pro-layout": "^6.5.0",
  54. "@ant-design/pro-table": "^2.9.16",
  55. "@umijs/route-utils": "^1.0.33",
  56. "antd": "^4.10.2",
  57. "classnames": "^2.2.6",
  58. "lodash": "^4.17.11",
  59. "moment": "^2.25.3",
  60. "omit.js": "^2.0.2",
  61. "qs": "^6.9.0",
  62. "react": "^17.0.0",
  63. "react-dev-inspector": "^1.1.1",
  64. "react-dom": "^17.0.0",
  65. "react-helmet-async": "^1.0.4",
  66. "umi": "^3.2.14",
  67. "umi-request": "^1.0.8",
  68. "use-merge-value": "^1.0.1",
  69. "viewerjs": "^1.9.0"
  70. },
  71. "devDependencies": {
  72. "@ant-design/pro-cli": "^2.0.2",
  73. "@types/classnames": "^2.2.7",
  74. "@types/express": "^4.17.0",
  75. "@types/history": "^4.7.2",
  76. "@types/jest": "^26.0.0",
  77. "@types/lodash": "^4.14.144",
  78. "@types/qs": "^6.5.3",
  79. "@types/react": "^17.0.0",
  80. "@types/react-dom": "^17.0.0",
  81. "@types/react-helmet": "^6.1.0",
  82. "@umijs/fabric": "^2.3.0",
  83. "@umijs/plugin-blocks": "^2.0.5",
  84. "@umijs/plugin-esbuild": "^1.0.1",
  85. "@umijs/preset-ant-design-pro": "^1.2.0",
  86. "@umijs/preset-dumi": "^1.1.0-rc.6",
  87. "@umijs/preset-react": "^1.7.4",
  88. "@umijs/yorkie": "^2.0.3",
  89. "carlo": "^0.9.46",
  90. "cross-env": "^7.0.0",
  91. "cross-port-killer": "^1.1.1",
  92. "detect-installer": "^1.0.1",
  93. "enzyme": "^3.11.0",
  94. "eslint": "^7.1.0",
  95. "express": "^4.17.1",
  96. "gh-pages": "^3.0.0",
  97. "jsdom-global": "^3.0.2",
  98. "lint-staged": "^10.0.0",
  99. "mockjs": "^1.0.1-beta3",
  100. "prettier": "^2.0.1",
  101. "pro-download": "1.0.1",
  102. "puppeteer-core": "^5.0.0",
  103. "stylelint": "^13.0.0",
  104. "typescript": "^4.0.3"
  105. },
  106. "engines": {
  107. "node": ">=10.0.0"
  108. }
  109. }