|
|
@@ -4,42 +4,20 @@
|
|
|
"private": true,
|
|
|
"description": "An out-of-box UI solution for enterprise applications",
|
|
|
"scripts": {
|
|
|
- "analyze": "cross-env ANALYZE=1 umi build",
|
|
|
- "build": "umi build",
|
|
|
+ "analyze": "cross-env ANALYZE=1 max build",
|
|
|
+ "build": "max build",
|
|
|
"deploy:qa": "cross-env REACT_APP_ENV=dev auto-deploy build -t qa",
|
|
|
"deploy:prod": "cross-env REACT_APP_ENV=prod auto-deploy build -t prod",
|
|
|
- "deploy-gh-pages": "npm run site && npm run gh-pages",
|
|
|
"dev": "npm run start:dev",
|
|
|
- "fetch:blocks": "pro fetch-blocks && npm run prettier",
|
|
|
- "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: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",
|
|
|
+ "postinstall": "max setup",
|
|
|
"precommit": "lint-staged",
|
|
|
- "prettier": "prettier -c --write \"src/**/*\"",
|
|
|
- "start": "umi dev",
|
|
|
- "start:dev": "cross-env PORT=8080 REACT_APP_ENV=dev MOCK=none umi dev",
|
|
|
- "start:org": "cross-env PORT=8080 REACT_APP_ENV=org MOCK=none umi dev",
|
|
|
- "start:no-mock": "cross-env MOCK=none umi dev",
|
|
|
- "start:no-ui": "cross-env UMI_UI=none umi dev",
|
|
|
- "start:pre": "cross-env REACT_APP_ENV=pre umi dev",
|
|
|
- "start:test": "cross-env REACT_APP_ENV=test MOCK=none 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"
|
|
|
},
|
|
|
"lint-staged": {
|
|
|
- "**/*.less": "stylelint --syntax less",
|
|
|
- "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
|
|
|
"**/*.{js,jsx,tsx,ts,less,md,json}": [
|
|
|
- "prettier --write"
|
|
|
+ "max lint"
|
|
|
]
|
|
|
},
|
|
|
"browserslist": [
|
|
|
@@ -51,11 +29,12 @@
|
|
|
"@ant-design/charts": "^1.3.2",
|
|
|
"@ant-design/icons": "^4.0.0",
|
|
|
"@ant-design/pro-form": "1.66.0",
|
|
|
- "@ant-design/pro-layout": "6.19.3",
|
|
|
+ "@ant-design/pro-layout": "6.38.8",
|
|
|
"@ant-design/pro-table": "2.76.3",
|
|
|
"@icon-park/react": "^1.3.3",
|
|
|
- "@umijs/route-utils": "^2.0.5",
|
|
|
- "ahooks": "^2.10.0",
|
|
|
+ "@umijs/max": "4.0.0-rc.22",
|
|
|
+ "@umijs/plugins": "4.0.0-rc.22",
|
|
|
+ "ahooks": "^3.4.1",
|
|
|
"antd": "4.21.0",
|
|
|
"antd-img-crop": "^3.16.0",
|
|
|
"classnames": "^2.2.6",
|
|
|
@@ -67,61 +46,35 @@
|
|
|
"qs": "^6.9.4",
|
|
|
"rc-util": "^5.16.1",
|
|
|
"rc-virtual-list": "^3.4.8",
|
|
|
- "react": "17.0.2",
|
|
|
+ "react": "18.1.0",
|
|
|
"react-copy-to-clipboard": "^5.0.4",
|
|
|
- "react-dom": "17.0.2",
|
|
|
+ "react-dom": "18.1.0",
|
|
|
"react-infinite-scroll-component": "^6.1.0",
|
|
|
"react-markdown": "^7.1.0",
|
|
|
- "umi": "3.5.4",
|
|
|
+ "unocss": "^0.38.2",
|
|
|
"vditor": "3.8.14",
|
|
|
"virtuallist-antd": "^0.7.2"
|
|
|
},
|
|
|
"devDependencies": {
|
|
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
|
"@babel/plugin-proposal-decorators": "^7.17.2",
|
|
|
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12",
|
|
|
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
|
|
|
- "@babel/preset-env": "^7.16.11",
|
|
|
- "@babel/preset-react": "^7.16.7",
|
|
|
- "@babel/preset-typescript": "^7.16.7",
|
|
|
- "@types/express": "^4.17.0",
|
|
|
- "@types/history": "^4.7.2",
|
|
|
"@types/jest": "^26.0.0",
|
|
|
"@types/lodash": "^4.14.144",
|
|
|
"@types/qs": "^6.5.3",
|
|
|
"@types/react": "^16.9.17",
|
|
|
"@types/react-dom": "^16.8.4",
|
|
|
- "@types/react-helmet": "^6.1.0",
|
|
|
- "@umijs/fabric": "^2.11.1",
|
|
|
- "@umijs/plugin-blocks": "^2.0.5",
|
|
|
- "@umijs/plugin-esbuild": "^1.4.1",
|
|
|
- "@umijs/preset-ant-design-pro": "^1.2.0",
|
|
|
- "@umijs/preset-react": "1.8.12",
|
|
|
- "@umijs/yorkie": "^2.0.3",
|
|
|
- "antd-dayjs-webpack-plugin": "^1.0.6",
|
|
|
+ "@unocss/cli": "^0.38.2",
|
|
|
"babel-plugin-import": "^1.13.5",
|
|
|
- "carlo": "^0.9.46",
|
|
|
- "compression-webpack-plugin": "4.0.1",
|
|
|
"cross-env": "^7.0.0",
|
|
|
- "cross-port-killer": "^1.1.1",
|
|
|
- "detect-installer": "^1.0.1",
|
|
|
- "eslint": "^7.18.0",
|
|
|
- "eslint-plugin-javascript": "^1.3.4",
|
|
|
- "eslint-plugin-jsx": "^0.1.0",
|
|
|
- "eslint-plugin-prettier": "^4.0.0",
|
|
|
- "eslint-plugin-typescript": "^0.14.0",
|
|
|
- "express": "^4.17.1",
|
|
|
- "gh-pages": "^3.0.0",
|
|
|
+ "eslint": "^8.17.0",
|
|
|
"lint-staged": "^10.0.0",
|
|
|
- "prettier": "^2.2.1",
|
|
|
- "puppeteer-core": "^5.0.0",
|
|
|
- "stylelint": "^13.9.0",
|
|
|
- "typescript": "^4.0.3",
|
|
|
- "webpack": "5.69.1",
|
|
|
- "windicss": "3.1.7",
|
|
|
- "windicss-webpack-plugin": "1.7.3"
|
|
|
+ "prettier": "^2.6.1",
|
|
|
+ "stylelint": "^14.9.0",
|
|
|
+ "typescript": "^4.7.3"
|
|
|
},
|
|
|
"engines": {
|
|
|
"node": ">=10.0.0"
|
|
|
- },
|
|
|
- "packageManager": "pnpm@6.32.4"
|
|
|
+ }
|
|
|
}
|