package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {
  2. "name": "ant-design-pro",
  3. "version": "4.1.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. "fetch:blocks": "pro fetch-blocks && npm run prettier",
  12. "gh-pages": "gh-pages -d dist",
  13. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  14. "postinstall": "umi g tmp",
  15. "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm 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 && npm 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\" --syntax less",
  22. "prettier": "prettier -c --write \"**/*\"",
  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"
  34. },
  35. "husky": {
  36. "hooks": {
  37. "pre-commit": "npm run lint-staged"
  38. }
  39. },
  40. "lint-staged": {
  41. "**/*.less": "stylelint --syntax less",
  42. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  43. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  44. "prettier --write"
  45. ]
  46. },
  47. "browserslist": [
  48. "> 1%",
  49. "last 2 versions",
  50. "not ie <= 10"
  51. ],
  52. "dependencies": {
  53. "@ant-design/icons": "^4.0.0",
  54. "@ant-design/pro-layout": "^6.0.0",
  55. "@ant-design/pro-table": "^2.4.4",
  56. "ahooks": "^2.2.0",
  57. "antd": "^4.4.0",
  58. "browser-md5-file": "^1.1.1",
  59. "classnames": "^2.2.6",
  60. "js-base64": "^3.4.3",
  61. "lodash": "^4.17.11",
  62. "moment": "^2.25.3",
  63. "omit.js": "^2.0.2",
  64. "path-to-regexp": "2.4.0",
  65. "qiniu-js": "^3.1.1",
  66. "qs": "^6.9.0",
  67. "react": "^16.8.6",
  68. "react-dom": "^16.8.6",
  69. "react-helmet-async": "^1.0.4",
  70. "umi": "^3.2.0",
  71. "umi-request": "^1.0.8",
  72. "use-merge-value": "^1.0.1"
  73. },
  74. "devDependencies": {
  75. "@ant-design/pro-cli": "^1.0.18",
  76. "@types/classnames": "^2.2.7",
  77. "@types/express": "^4.17.0",
  78. "@types/history": "^4.7.2",
  79. "@types/jest": "^26.0.0",
  80. "@types/lodash": "^4.14.144",
  81. "@types/qs": "^6.5.3",
  82. "@types/react": "^16.9.17",
  83. "@types/react-dom": "^16.8.4",
  84. "@types/react-helmet": "^5.0.13",
  85. "@umijs/fabric": "^2.2.0",
  86. "@umijs/plugin-blocks": "^2.0.5",
  87. "@umijs/preset-ant-design-pro": "^1.2.0",
  88. "@umijs/preset-react": "^1.4.8",
  89. "@umijs/preset-ui": "^2.0.9",
  90. "carlo": "^0.9.46",
  91. "chalk": "^4.0.0",
  92. "cross-env": "^7.0.0",
  93. "cross-port-killer": "^1.1.1",
  94. "detect-installer": "^1.0.1",
  95. "enzyme": "^3.11.0",
  96. "eslint": "^7.1.0",
  97. "express": "^4.17.1",
  98. "gh-pages": "^3.0.0",
  99. "husky": "^4.0.7",
  100. "jsdom-global": "^3.0.2",
  101. "lint-staged": "^10.0.0",
  102. "mockjs": "^1.0.1-beta3",
  103. "prettier": "^2.0.1",
  104. "pro-download": "1.0.1",
  105. "puppeteer-core": "^5.0.0",
  106. "stylelint": "^13.0.0"
  107. },
  108. "engines": {
  109. "node": ">=10.0.0"
  110. },
  111. "checkFiles": [
  112. "src/**/*.js*",
  113. "src/**/*.ts*",
  114. "src/**/*.less",
  115. "config/**/*.js*",
  116. "scripts/**/*.js"
  117. ]
  118. }