package.json 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. "wangeditor": "^3.1.1"
  66. },
  67. "devDependencies": {
  68. "@ant-design/colors": "^3.1.0",
  69. "@ant-design/pro-cli": "^1.0.0",
  70. "@types/classnames": "^2.2.7",
  71. "@types/express": "^4.17.0",
  72. "@types/history": "^4.7.2",
  73. "@types/jest": "^24.0.13",
  74. "@types/lodash": "^4.14.133",
  75. "@types/qs": "^6.5.3",
  76. "@types/react": "^16.8.19",
  77. "@types/react-document-title": "^2.0.3",
  78. "@types/react-dom": "^16.8.4",
  79. "@umijs/fabric": "^1.1.0",
  80. "chalk": "^2.4.2",
  81. "check-prettier": "^1.0.3",
  82. "cross-env": "^5.2.0",
  83. "cross-port-killer": "^1.1.1",
  84. "enzyme": "^3.9.0",
  85. "eslint": "^5.16.0",
  86. "express": "^4.17.1",
  87. "gh-pages": "^2.0.1",
  88. "husky": "^3.0.0",
  89. "import-sort-cli": "^6.0.0",
  90. "import-sort-parser-babylon": "^6.0.0",
  91. "import-sort-parser-typescript": "^6.0.0",
  92. "import-sort-style-module": "^6.0.0",
  93. "jest-puppeteer": "^4.2.0",
  94. "lint-staged": "^9.0.0",
  95. "mockjs": "^1.0.1-beta3",
  96. "node-fetch": "^2.6.0",
  97. "prettier": "^1.17.1",
  98. "pro-download": "1.0.1",
  99. "slash2": "^2.0.0",
  100. "stylelint": "^10.1.0",
  101. "umi-plugin-ga": "^1.1.3",
  102. "umi-plugin-pro": "^1.0.2",
  103. "umi-types": "^0.3.8",
  104. "webpack-theme-color-replacer": "^1.2.15"
  105. },
  106. "optionalDependencies": {
  107. "puppeteer": "^1.17.0"
  108. },
  109. "engines": {
  110. "node": ">=10.0.0"
  111. },
  112. "checkFiles": [
  113. "src/**/*.js*",
  114. "src/**/*.ts*",
  115. "src/**/*.less",
  116. "config/**/*.js*",
  117. "scripts/**/*.js"
  118. ]
  119. }