package.json 5.2 KB

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