|
@@ -4,42 +4,21 @@
|
|
"private": true,
|
|
"private": true,
|
|
"description": "An out-of-box UI solution for enterprise applications",
|
|
"description": "An out-of-box UI solution for enterprise applications",
|
|
"scripts": {
|
|
"scripts": {
|
|
- "analyze": "cross-env ANALYZE=1 umi build",
|
|
|
|
- "build": "umi build",
|
|
|
|
|
|
+ "analyze": "cross-env ANALYZE=1 max build",
|
|
|
|
+ "build": "cross-env REACT_APP_ENV=prod max build",
|
|
"deploy:qa": "auto-deploy build -t qa",
|
|
"deploy:qa": "auto-deploy build -t qa",
|
|
"deploy:prod": "auto-deploy build -t prod",
|
|
"deploy:prod": "auto-deploy build -t prod",
|
|
- "deploy": "npm run site && npm run gh-pages",
|
|
|
|
"dev": "npm run start:dev",
|
|
"dev": "npm run start:dev",
|
|
- "gh-pages": "gh-pages -d dist",
|
|
|
|
- "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
|
|
|
|
- "postinstall": "umi g tmp",
|
|
|
|
- "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
|
|
|
|
- "lint-staged": "lint-staged",
|
|
|
|
- "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
|
|
|
|
- "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
|
|
|
|
- "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
|
|
|
|
- "lint:prettier": "prettier --check \"src/**/*\" --end-of-line auto",
|
|
|
|
- "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
|
|
|
|
- "openapi": "umi openapi",
|
|
|
|
|
|
+ "postinstall": "max setup",
|
|
"precommit": "lint-staged",
|
|
"precommit": "lint-staged",
|
|
- "prettier": "prettier -c --write \"src/**/*\"",
|
|
|
|
- "start": "cross-env UMI_ENV=dev umi dev",
|
|
|
|
- "start:dev": "cross-env PORT=8081 REACT_APP_ENV=dev MOCK=none UMI_ENV=dev umi dev",
|
|
|
|
- "start:no-mock": "cross-env MOCK=none UMI_ENV=dev umi dev",
|
|
|
|
- "start:no-ui": "cross-env UMI_UI=none UMI_ENV=dev umi dev",
|
|
|
|
- "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev umi dev",
|
|
|
|
- "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev umi dev",
|
|
|
|
- "pretest": "node ./tests/beforeTest",
|
|
|
|
- "test": "umi test",
|
|
|
|
- "test:all": "node ./tests/run-tests.js",
|
|
|
|
- "test:component": "umi test ./src/components",
|
|
|
|
- "tsc": "tsc --noEmit"
|
|
|
|
|
|
+ "start": "max dev",
|
|
|
|
+ "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none max dev",
|
|
|
|
+ "start:org": "cross-env REACT_APP_ENV=org MOCK=none max dev",
|
|
|
|
+ "prepare": "husky install"
|
|
},
|
|
},
|
|
"lint-staged": {
|
|
"lint-staged": {
|
|
- "**/*.less": "stylelint --syntax less",
|
|
|
|
- "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
|
|
|
|
- "**/*.{js,jsx,tsx,ts,less,md,json}": [
|
|
|
|
- "prettier --write"
|
|
|
|
|
|
+ "**/*.{js,jsx,tsx,ts,less}": [
|
|
|
|
+ "max lint"
|
|
]
|
|
]
|
|
},
|
|
},
|
|
"browserslist": [
|
|
"browserslist": [
|
|
@@ -50,73 +29,43 @@
|
|
"dependencies": {
|
|
"dependencies": {
|
|
"@ant-design/icons": "^4.7.0",
|
|
"@ant-design/icons": "^4.7.0",
|
|
"@ant-design/pro-descriptions": "^1.10.60",
|
|
"@ant-design/pro-descriptions": "^1.10.60",
|
|
- "@ant-design/pro-form": "1.43.2",
|
|
|
|
- "@ant-design/pro-layout": "^6.34.8",
|
|
|
|
- "@ant-design/pro-table": "^2.70.0",
|
|
|
|
|
|
+ "@ant-design/pro-form": "1.66.0",
|
|
|
|
+ "@ant-design/pro-layout": "6.38.8",
|
|
|
|
+ "@ant-design/pro-table": "2.76.3",
|
|
"@icon-park/react": "^1.3.5",
|
|
"@icon-park/react": "^1.3.5",
|
|
- "@umijs/plugin-openapi": "^1.3.2",
|
|
|
|
- "@umijs/route-utils": "^1.0.37",
|
|
|
|
"ahooks": "2.10.9",
|
|
"ahooks": "2.10.9",
|
|
"antd": "^4.19.5",
|
|
"antd": "^4.19.5",
|
|
"array-move": "^4.0.0",
|
|
"array-move": "^4.0.0",
|
|
"classnames": "^2.3.1",
|
|
"classnames": "^2.3.1",
|
|
"lodash": "^4.17.21",
|
|
"lodash": "^4.17.21",
|
|
"markdown-it": "^12.3.2",
|
|
"markdown-it": "^12.3.2",
|
|
- "moment": "^2.29.2",
|
|
|
|
"omit.js": "^2.0.2",
|
|
"omit.js": "^2.0.2",
|
|
"rc-queue-anim": "^1.8.5",
|
|
"rc-queue-anim": "^1.8.5",
|
|
- "react": "^17.0.2",
|
|
|
|
- "react-dom": "^17.0.2",
|
|
|
|
|
|
+ "react": "18.1.0",
|
|
|
|
+ "react-dom": "18.1.0",
|
|
"react-helmet-async": "^1.2.3",
|
|
"react-helmet-async": "^1.2.3",
|
|
"react-markdown-editor-lite": "^1.3.2",
|
|
"react-markdown-editor-lite": "^1.3.2",
|
|
"react-sortable-hoc": "^2.0.0",
|
|
"react-sortable-hoc": "^2.0.0",
|
|
- "umi": "3.5.3"
|
|
|
|
|
|
+ "@umijs/max": "4.0.7",
|
|
|
|
+ "@umijs/plugins": "4.0.7"
|
|
},
|
|
},
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
- "@ant-design/pro-cli": "^2.1.5",
|
|
|
|
- "@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
|
|
|
|
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
|
|
|
- "@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
|
|
- "@types/classnames": "^2.3.1",
|
|
|
|
- "@types/express": "^4.17.13",
|
|
|
|
- "@types/history": "^4.7.11",
|
|
|
|
- "@types/jest": "^26.0.24",
|
|
|
|
"@types/lodash": "^4.14.181",
|
|
"@types/lodash": "^4.14.181",
|
|
- "@types/react": "^17.0.43",
|
|
|
|
- "@types/react-dom": "^17.0.14",
|
|
|
|
- "@types/react-helmet": "^6.1.5",
|
|
|
|
- "@umijs/fabric": "2.10.2",
|
|
|
|
- "@umijs/plugin-blocks": "^2.2.2",
|
|
|
|
- "@umijs/plugin-esbuild": "^1.4.1",
|
|
|
|
- "@umijs/preset-ant-design-pro": "^1.3.3",
|
|
|
|
- "@umijs/preset-dumi": "^1.1.40",
|
|
|
|
- "@umijs/preset-react": "1.8.22",
|
|
|
|
- "@umijs/yorkie": "^2.0.5",
|
|
|
|
|
|
+ "@types/react": "^18.0.0",
|
|
|
|
+ "@types/react-dom": "^18.0.0",
|
|
"babel-plugin-import": "^1.13.3",
|
|
"babel-plugin-import": "^1.13.3",
|
|
- "carlo": "^0.9.46",
|
|
|
|
"cross-env": "^7.0.3",
|
|
"cross-env": "^7.0.3",
|
|
- "cross-port-killer": "^1.4.0",
|
|
|
|
- "detect-installer": "^1.0.2",
|
|
|
|
- "enzyme": "^3.11.0",
|
|
|
|
- "eslint": "^7.32.0",
|
|
|
|
- "eslint-plugin-javascript": "^1.3.4",
|
|
|
|
- "eslint-plugin-jsx": "^0.1.0",
|
|
|
|
- "eslint-plugin-typescript": "^0.14.0",
|
|
|
|
- "express": "^4.17.3",
|
|
|
|
- "gh-pages": "^3.2.3",
|
|
|
|
- "jsdom-global": "^3.0.2",
|
|
|
|
"lint-staged": "^10.5.4",
|
|
"lint-staged": "^10.5.4",
|
|
- "mockjs": "^1.1.0",
|
|
|
|
- "prettier": "^2.6.2",
|
|
|
|
- "puppeteer-core": "^8.0.0",
|
|
|
|
- "react-dev-inspector": "^1.7.1",
|
|
|
|
- "stylelint": "^13.13.1",
|
|
|
|
|
|
+ "husky": "^8.0.0",
|
|
|
|
+ "eslint": "^8.17.0",
|
|
|
|
+ "prettier": "^2.6.1",
|
|
|
|
+ "stylelint": "^14.9.0",
|
|
"typescript": "^4.6.3",
|
|
"typescript": "^4.6.3",
|
|
- "windicss": "3.1.7",
|
|
|
|
- "windicss-webpack-plugin": "1.4.6"
|
|
|
|
|
|
+ "@unocss/cli": "^0.44.2",
|
|
|
|
+ "unocss": "^0.44.2"
|
|
},
|
|
},
|
|
"engines": {
|
|
"engines": {
|
|
- "node": ">=10.0.0"
|
|
|
|
|
|
+ "node": ">=14.0.0"
|
|
},
|
|
},
|
|
"packageManager": "pnpm@6.31.0"
|
|
"packageManager": "pnpm@6.31.0"
|
|
}
|
|
}
|