package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. "openapi": "umi openapi",
  22. "precommit": "lint-staged",
  23. "prettier": "prettier -c --write \"src/**/*\"",
  24. "start": "cross-env UMI_ENV=dev umi dev",
  25. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev umi dev",
  26. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev umi dev",
  27. "start:no-ui": "cross-env UMI_UI=none UMI_ENV=dev umi dev",
  28. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev umi dev",
  29. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev umi dev",
  30. "pretest": "node ./tests/beforeTest",
  31. "test": "umi test",
  32. "test:all": "node ./tests/run-tests.js",
  33. "test:component": "umi test ./src/components",
  34. "tsc": "tsc --noEmit"
  35. },
  36. "lint-staged": {
  37. "**/*.less": "stylelint --syntax less",
  38. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  39. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  40. "prettier --write"
  41. ]
  42. },
  43. "browserslist": [
  44. "> 1%",
  45. "last 2 versions",
  46. "not ie <= 10"
  47. ],
  48. "dependencies": {
  49. "@ant-design/icons": "^4.5.0",
  50. "@ant-design/pro-descriptions": "^1.6.8",
  51. "@ant-design/pro-form": "^1.18.3",
  52. "@ant-design/pro-layout": "^6.15.3",
  53. "@ant-design/pro-table": "^2.30.8",
  54. "@umijs/openapi": "^1.1.14",
  55. "@umijs/plugin-openapi": "^1.2.0",
  56. "@umijs/route-utils": "^1.0.36",
  57. "antd": "^4.14.0",
  58. "classnames": "^2.2.6",
  59. "lodash": "^4.17.11",
  60. "moment": "^2.25.3",
  61. "omit.js": "^2.0.2",
  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.4.0",
  67. "umi-request": "^1.0.8"
  68. },
  69. "devDependencies": {
  70. "@ant-design/pro-cli": "^2.0.2",
  71. "@babel/plugin-proposal-logical-assignment-operators": "^7.13.8",
  72. "@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
  73. "@babel/plugin-proposal-optional-chaining": "^7.13.12",
  74. "@types/classnames": "^2.2.7",
  75. "@types/express": "^4.17.0",
  76. "@types/history": "^4.7.2",
  77. "@types/jest": "^26.0.0",
  78. "@types/lodash": "^4.14.144",
  79. "@types/react": "^17.0.0",
  80. "@types/react-dom": "^17.0.0",
  81. "@types/react-helmet": "^6.1.0",
  82. "@umijs/fabric": "^2.5.2",
  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.7",
  87. "@umijs/preset-react": "^1.7.4",
  88. "@umijs/preset-ui": "^2.2.9",
  89. "@umijs/yorkie": "^2.0.3",
  90. "carlo": "^0.9.46",
  91. "cross-env": "^7.0.0",
  92. "cross-port-killer": "^1.1.1",
  93. "detect-installer": "^1.0.1",
  94. "enzyme": "^3.11.0",
  95. "eslint": "^7.1.0",
  96. "eslint-plugin-javascript": "^1.3.4",
  97. "express": "^4.17.1",
  98. "gh-pages": "^3.0.0",
  99. "jsdom-global": "^3.0.2",
  100. "lint-staged": "^10.0.0",
  101. "mockjs": "^1.0.1-beta3",
  102. "prettier": "^2.0.1",
  103. "puppeteer-core": "^8.0.0",
  104. "stylelint": "^13.0.0",
  105. "typescript": "^4.2.2",
  106. "windicss": "^2.5.14",
  107. "windicss-webpack-plugin": "^0.5.3"
  108. },
  109. "engines": {
  110. "node": ">=10.0.0"
  111. }
  112. }