package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. "name": "ant-design-pro",
  3. "version": "5.0.0-alpha.0",
  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 \"**/*\" --end-of-line auto",
  20. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  21. "prettier": "prettier -c --write \"**/*\"",
  22. "start": "umi dev",
  23. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none umi dev",
  24. "start:no-mock": "cross-env MOCK=none umi dev",
  25. "start:no-ui": "cross-env UMI_UI=none umi dev",
  26. "start:pre": "cross-env REACT_APP_ENV=pre umi dev",
  27. "start:test": "cross-env REACT_APP_ENV=test MOCK=none umi dev",
  28. "pretest": "node ./tests/beforeTest",
  29. "test": "umi test",
  30. "test:all": "node ./tests/run-tests.js",
  31. "test:component": "umi test ./src/components",
  32. "tsc": "tsc"
  33. },
  34. "lint-staged": {
  35. "**/*.less": "stylelint --syntax less",
  36. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  37. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  38. "prettier --write"
  39. ]
  40. },
  41. "browserslist": [
  42. "> 1%",
  43. "last 2 versions",
  44. "not ie <= 10"
  45. ],
  46. "dependencies": {
  47. "@ant-design/charts": "1.1.9",
  48. "@ant-design/icons": "^4.0.0",
  49. "@ant-design/pro-layout": "^6.2.5",
  50. "@ant-design/pro-table": "^2.4.0",
  51. "@antv/g2": "^4.1.12",
  52. "@antv/g6": "^3.8.4",
  53. "antd": "^4.4.0",
  54. "braft-editor": "^2.3.9",
  55. "classnames": "^2.2.6",
  56. "d3": "^6.2.0",
  57. "dagre-d3": "^0.6.4",
  58. "g6": "^0.2.0",
  59. "insert-css": "^2.0.0",
  60. "jquery": "^3.5.1",
  61. "jquery.tipsy": "^1.0.3",
  62. "js-cookie": "^2.2.1",
  63. "jsonwebtoken": "^8.5.1",
  64. "lodash": "^4.17.11",
  65. "moment": "^2.27.0",
  66. "omit.js": "^2.0.2",
  67. "path-to-regexp": "2.4.0",
  68. "qs": "^6.9.0",
  69. "react": "^16.8.6",
  70. "react-dom": "^16.8.6",
  71. "react-helmet-async": "^1.0.4",
  72. "umi": "^3.2.0",
  73. "umi-request": "^1.0.8",
  74. "use-merge-value": "^1.0.1"
  75. },
  76. "devDependencies": {
  77. "@ant-design/pro-cli": "^2.0.2",
  78. "@types/classnames": "^2.2.7",
  79. "@types/express": "^4.17.0",
  80. "@types/history": "^4.7.2",
  81. "@types/jest": "^26.0.0",
  82. "@types/lodash": "^4.14.144",
  83. "@types/qs": "^6.5.3",
  84. "@types/react": "^16.9.17",
  85. "@types/react-dom": "^16.8.4",
  86. "@types/react-helmet": "^5.0.13",
  87. "@umijs/fabric": "^2.2.0",
  88. "@umijs/plugin-blocks": "^2.0.5",
  89. "@umijs/plugin-esbuild": "^1.0.0-beta.2",
  90. "@umijs/preset-ant-design-pro": "^1.2.0",
  91. "@umijs/preset-react": "^1.4.8",
  92. "@umijs/preset-ui": "^2.0.9",
  93. "@umijs/yorkie": "^2.0.3",
  94. "carlo": "^0.9.46",
  95. "cross-env": "^7.0.0",
  96. "cross-port-killer": "^1.1.1",
  97. "detect-installer": "^1.0.1",
  98. "enzyme": "^3.11.0",
  99. "eslint": "^7.1.0",
  100. "express": "^4.17.1",
  101. "gh-pages": "^3.0.0",
  102. "husky": "^4.0.7",
  103. "jsdom-global": "^3.0.2",
  104. "lint-staged": "^10.0.0",
  105. "mockjs": "^1.0.1-beta3",
  106. "prettier": "^2.0.1",
  107. "pro-download": "1.0.1",
  108. "puppeteer-core": "^5.0.0",
  109. "stylelint": "^13.0.0"
  110. },
  111. "engines": {
  112. "node": ">=10.0.0"
  113. }
  114. }