package.json 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. {
  2. "name": "ant-design-pro",
  3. "version": "4.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. "ui":"umi ui",
  10. "deploy": "cross-env ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION=site npm run site && npm run gh-pages",
  11. "docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./",
  12. "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build",
  13. "docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up",
  14. "docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build",
  15. "docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up",
  16. "docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro",
  17. "docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro",
  18. "fetch:blocks": "pro fetch-blocks",
  19. "format-imports": "import-sort --write '**/*.{js,jsx,ts,tsx}'",
  20. "functions:build": "netlify-lambda build ./lambda",
  21. "functions:run": "cross-env NODE_ENV=dev netlify-lambda serve ./lambda",
  22. "gh-pages": "cp CNAME ./dist/ && gh-pages -d dist",
  23. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  24. "lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
  25. "lint-staged": "lint-staged",
  26. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  27. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
  28. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  29. "lint:prettier": "check-prettier lint",
  30. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  31. "prettier": "prettier -c --write \"**/*\"",
  32. "site": "npm run fetch:blocks && npm run build && npm run functions:build",
  33. "start": "umi dev",
  34. "start:no-mock": "cross-env MOCK=none umi dev",
  35. "test": "umi test",
  36. "test:all": "node ./tests/run-tests.js",
  37. "test:component": "umi test ./src/components"
  38. },
  39. "husky": {
  40. "hooks": {
  41. "pre-commit": "npm run lint-staged"
  42. }
  43. },
  44. "lint-staged": {
  45. "**/*.less": "stylelint --syntax less",
  46. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  47. "prettier --write",
  48. "git add"
  49. ],
  50. "**/*.{js,jsx}": "npm run lint-staged:js",
  51. "**/*.{js,ts,tsx}": "npm run lint-staged:js"
  52. },
  53. "browserslist": [
  54. "> 1%",
  55. "last 2 versions",
  56. "not ie <= 10"
  57. ],
  58. "dependencies": {
  59. "@ant-design/pro-layout": "^4.5.9",
  60. "@antv/data-set": "^0.10.2",
  61. "antd": "^3.20.0",
  62. "classnames": "^2.2.6",
  63. "dva": "^2.4.1",
  64. "lodash": "^4.17.11",
  65. "moment": "^2.24.0",
  66. "omit.js": "^1.0.2",
  67. "path-to-regexp": "^3.0.0",
  68. "qs": "^6.7.0",
  69. "react": "^16.8.6",
  70. "react-copy-to-clipboard": "^5.0.1",
  71. "react-document-title": "^2.0.3",
  72. "react-dom": "^16.8.6",
  73. "redux": "^4.0.1",
  74. "umi": "^2.8.7",
  75. "umi-plugin-pro-block": "^1.3.2",
  76. "umi-plugin-react": "^1.9.5",
  77. "umi-request": "^1.0.8"
  78. },
  79. "devDependencies": {
  80. "@ant-design/colors": "^3.1.0",
  81. "@ant-design/pro-cli": "^1.0.0",
  82. "@types/classnames": "^2.2.7",
  83. "@types/express": "^4.17.0",
  84. "@types/history": "^4.7.2",
  85. "@types/jest": "^24.0.13",
  86. "@types/lodash": "^4.14.133",
  87. "@types/qs": "^6.5.3",
  88. "@types/react": "^16.8.19",
  89. "@types/react-document-title": "^2.0.3",
  90. "@types/react-dom": "^16.8.4",
  91. "@umijs/fabric": "^1.1.0",
  92. "chalk": "^2.4.2",
  93. "check-prettier": "^1.0.3",
  94. "cross-env": "^5.2.0",
  95. "cross-port-killer": "^1.1.1",
  96. "enzyme": "^3.9.0",
  97. "eslint": "^5.16.0",
  98. "express": "^4.17.1",
  99. "gh-pages": "^2.0.1",
  100. "husky": "^3.0.0",
  101. "import-sort-cli": "^6.0.0",
  102. "import-sort-parser-babylon": "^6.0.0",
  103. "import-sort-parser-typescript": "^6.0.0",
  104. "import-sort-style-module": "^6.0.0",
  105. "jest-puppeteer": "^4.2.0",
  106. "lint-staged": "^9.0.0",
  107. "mockjs": "^1.0.1-beta3",
  108. "netlify-lambda": "^1.4.13",
  109. "node-fetch": "^2.6.0",
  110. "prettier": "^1.17.1",
  111. "pro-download": "1.0.1",
  112. "serverless-http": "^2.0.2",
  113. "slash2": "^2.0.0",
  114. "stylelint": "^10.1.0",
  115. "umi-plugin-ga": "^1.1.3",
  116. "umi-plugin-pro": "^1.0.2",
  117. "umi-types": "^0.3.8",
  118. "webpack-theme-color-replacer": "^1.2.15"
  119. },
  120. "optionalDependencies": {
  121. "puppeteer": "^1.17.0"
  122. },
  123. "engines": {
  124. "node": ">=10.0.0"
  125. },
  126. "checkFiles": [
  127. "src/**/*.js*",
  128. "src/**/*.ts*",
  129. "src/**/*.less",
  130. "config/**/*.js*",
  131. "scripts/**/*.js"
  132. ],
  133. "create-umi": {
  134. "ignoreScript": [
  135. "docker*",
  136. "functions*",
  137. "site",
  138. "generateMock"
  139. ],
  140. "ignoreDependencies": [
  141. "netlify*",
  142. "serverless"
  143. ],
  144. "ignore": [
  145. ".dockerignore",
  146. ".git",
  147. ".gitpod.yml",
  148. "CODE_OF_CONDUCT.md",
  149. "Dockerfile",
  150. "Dockerfile.*",
  151. "lambda",
  152. "LICENSE",
  153. "netlify.toml",
  154. "README.*.md",
  155. "azure-pipelines.yml",
  156. "docker",
  157. "CNAME",
  158. "create-umi"
  159. ]
  160. }
  161. }