package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "name": "cldv2_console",
  3. "version": "0.0.1",
  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. "gh-pages": "gh-pages -d dist",
  12. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  13. "postinstall": "umi g tmp",
  14. "lint": "umi g tmp && 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": "prettier --check \"src/**/*\" --end-of-line auto",
  20. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  21. "openapi": "umi openapi",
  22. "precommit": "lint-staged",
  23. "prettier": "prettier -c --write \"src/**/*\"",
  24. "start": "cross-env UMI_ENV=dev umi dev",
  25. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev umi dev",
  26. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev umi dev",
  27. "start:no-ui": "cross-env UMI_UI=none UMI_ENV=dev umi dev",
  28. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev umi dev",
  29. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev umi dev",
  30. "pretest": "node ./tests/beforeTest",
  31. "test": "umi test",
  32. "test:all": "node ./tests/run-tests.js",
  33. "test:component": "umi test ./src/components",
  34. "tsc": "tsc --noEmit"
  35. },
  36. "lint-staged": {
  37. "**/*.less": "stylelint --syntax less",
  38. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  39. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  40. "prettier --write"
  41. ]
  42. },
  43. "browserslist": [
  44. "> 1%",
  45. "last 2 versions",
  46. "not ie <= 10"
  47. ],
  48. "dependencies": {
  49. "@ant-design/icons": "^4.5.0",
  50. "@ant-design/pro-descriptions": "^1.6.8",
  51. "@ant-design/pro-form": "^1.18.3",
  52. "@ant-design/pro-layout": "^6.15.3",
  53. "@ant-design/pro-table": "^2.30.8",
  54. "@icon-park/react": "^1.3.3",
  55. "@umijs/openapi": "^1.1.14",
  56. "@umijs/plugin-openapi": "^1.2.0",
  57. "@umijs/route-utils": "^1.0.36",
  58. "ahooks": "^2.10.4",
  59. "antd": "^4.14.0",
  60. "classnames": "^2.2.6",
  61. "lodash": "^4.17.11",
  62. "moment": "^2.25.3",
  63. "omit.js": "^2.0.2",
  64. "react": "^17.0.0",
  65. "react-dev-inspector": "^1.1.1",
  66. "react-dom": "^17.0.0",
  67. "react-helmet-async": "^1.0.4",
  68. "umi": "^3.4.0",
  69. "umi-request": "^1.3.9"
  70. },
  71. "devDependencies": {
  72. "@ant-design/pro-cli": "^2.0.2",
  73. "@babel/plugin-proposal-logical-assignment-operators": "^7.13.8",
  74. "@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
  75. "@babel/plugin-proposal-optional-chaining": "^7.13.12",
  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/react": "^17.0.0",
  82. "@types/react-dom": "^17.0.0",
  83. "@types/react-helmet": "^6.1.0",
  84. "@umijs/fabric": "2.5.13",
  85. "@umijs/plugin-blocks": "^2.0.5",
  86. "@umijs/plugin-esbuild": "^1.0.1",
  87. "@umijs/preset-ant-design-pro": "^1.2.0",
  88. "@umijs/preset-dumi": "^1.1.7",
  89. "@umijs/preset-react": "^1.7.4",
  90. "@umijs/yorkie": "^2.0.3",
  91. "carlo": "^0.9.46",
  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. "eslint-plugin-javascript": "^1.3.4",
  98. "eslint-plugin-jsx": "^0.1.0",
  99. "eslint-plugin-typescript": "^0.14.0",
  100. "express": "^4.17.1",
  101. "gh-pages": "^3.0.0",
  102. "jsdom-global": "^3.0.2",
  103. "lint-staged": "^10.0.0",
  104. "mockjs": "^1.0.1-beta3",
  105. "prettier": "^2.0.1",
  106. "puppeteer-core": "^8.0.0",
  107. "stylelint": "^13.0.0",
  108. "typescript": "^4.2.2",
  109. "windicss": "3.0.12",
  110. "windicss-webpack-plugin": "0.6.1"
  111. },
  112. "engines": {
  113. "node": ">=10.0.0"
  114. }
  115. }