package.json 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {
  2. "name": "ant-design-pro",
  3. "version": "1.0.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": "cross-env ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION=site npm run site && npm run gh-pages",
  10. "fetch:blocks": "pro fetch-blocks",
  11. "format-imports": "import-sort --write '**/*.{js,jsx,ts,tsx}'",
  12. "gh-pages": "cp CNAME ./dist/ && gh-pages -d dist",
  13. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  14. "lint": "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": "check-prettier lint",
  20. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  21. "prettier": "prettier -c --write \"**/*\"",
  22. "start": "umi dev",
  23. "start:no-mock": "cross-env MOCK=none umi dev",
  24. "test": "umi test",
  25. "test:all": "node ./tests/run-tests.js",
  26. "test:component": "umi test ./src/components",
  27. "ui": "umi ui"
  28. },
  29. "lint-staged": {
  30. "**/*.less": "stylelint --syntax less",
  31. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  32. "prettier --write",
  33. "git add"
  34. ],
  35. "**/*.{js,jsx}": "npm run lint-staged:js",
  36. "**/*.{js,ts,tsx}": "npm run lint-staged:js"
  37. },
  38. "browserslist": [
  39. "> 1%",
  40. "last 2 versions",
  41. "not ie <= 10"
  42. ],
  43. "dependencies": {
  44. "@ant-design/pro-layout": "^4.5.9",
  45. "@antv/data-set": "^0.10.2",
  46. "@zjxpcyc/xrc-form2": "^2.2.1",
  47. "antd": "^3.20.0",
  48. "classnames": "^2.2.6",
  49. "dva": "^2.4.1",
  50. "lodash": "^4.17.11",
  51. "md5": "^2.2.1",
  52. "moment": "^2.24.0",
  53. "omit.js": "^1.0.2",
  54. "path-to-regexp": "^3.0.0",
  55. "qs": "^6.7.0",
  56. "react": "^16.8.6",
  57. "react-copy-to-clipboard": "^5.0.1",
  58. "react-document-title": "^2.0.3",
  59. "react-dom": "^16.8.6",
  60. "redux": "^4.0.1",
  61. "umi": "^2.8.7",
  62. "umi-plugin-pro-block": "^1.3.2",
  63. "umi-plugin-react": "^1.9.5",
  64. "umi-request": "^1.0.8"
  65. },
  66. "devDependencies": {
  67. "@ant-design/colors": "^3.1.0",
  68. "@ant-design/pro-cli": "^1.0.0",
  69. "@types/classnames": "^2.2.7",
  70. "@types/express": "^4.17.0",
  71. "@types/history": "^4.7.2",
  72. "@types/jest": "^24.0.13",
  73. "@types/lodash": "^4.14.133",
  74. "@types/qs": "^6.5.3",
  75. "@types/react": "^16.8.19",
  76. "@types/react-document-title": "^2.0.3",
  77. "@types/react-dom": "^16.8.4",
  78. "@umijs/fabric": "^1.1.0",
  79. "chalk": "^2.4.2",
  80. "check-prettier": "^1.0.3",
  81. "cross-env": "^5.2.0",
  82. "cross-port-killer": "^1.1.1",
  83. "enzyme": "^3.9.0",
  84. "eslint": "^5.16.0",
  85. "express": "^4.17.1",
  86. "gh-pages": "^2.0.1",
  87. "husky": "^3.0.0",
  88. "import-sort-cli": "^6.0.0",
  89. "import-sort-parser-babylon": "^6.0.0",
  90. "import-sort-parser-typescript": "^6.0.0",
  91. "import-sort-style-module": "^6.0.0",
  92. "jest-puppeteer": "^4.2.0",
  93. "lint-staged": "^9.0.0",
  94. "mockjs": "^1.0.1-beta3",
  95. "node-fetch": "^2.6.0",
  96. "prettier": "^1.17.1",
  97. "pro-download": "1.0.1",
  98. "slash2": "^2.0.0",
  99. "stylelint": "^10.1.0",
  100. "umi-plugin-ga": "^1.1.3",
  101. "umi-plugin-pro": "^1.0.2",
  102. "umi-types": "^0.3.8",
  103. "webpack-theme-color-replacer": "^1.2.15"
  104. },
  105. "optionalDependencies": {
  106. "puppeteer": "^1.17.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. }