|
@@ -1,43 +1,24 @@
|
|
|
{
|
|
|
- "name": "ant-design-pro",
|
|
|
- "version": "5.0.0",
|
|
|
+ "name": "financial_audit_console",
|
|
|
+ "version": "1.0.0",
|
|
|
"private": true,
|
|
|
- "description": "An out-of-box UI solution for enterprise applications",
|
|
|
+ "description": "",
|
|
|
"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",
|
|
|
"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 && npm run tsc",
|
|
|
- "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 -c --write \"src/**/*\" --end-of-line auto",
|
|
|
- "lint:style": "stylelint --fix \"src/**/*.less\" --custom-syntax postcss-less",
|
|
|
+ "postinstall": "max setup",
|
|
|
"precommit": "lint-staged",
|
|
|
- "prettier": "prettier -c --write \"src/**/*\"",
|
|
|
- "start": "cross-env UMI_ENV=dev umi dev",
|
|
|
- "start:dev": "cross-env PORT=8090 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",
|
|
|
- "serve": "umi-serve",
|
|
|
- "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": {
|
|
|
- "**/*.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": [
|
|
@@ -48,7 +29,7 @@
|
|
|
"dependencies": {
|
|
|
"@ant-design/icons": "^4.5.0",
|
|
|
"@ant-design/pro-form": "1.67.1",
|
|
|
- "@ant-design/pro-layout": "6.19.3",
|
|
|
+ "@ant-design/pro-layout": "6.38.8",
|
|
|
"@ant-design/pro-table": "2.74.1",
|
|
|
"@designable/core": "^1.0.0-beta.43",
|
|
|
"@designable/formily-setters": "^1.0.0-beta.43",
|
|
@@ -62,60 +43,43 @@
|
|
|
"@formily/reactive": "^2.1.4",
|
|
|
"@formily/reactive-react": "^2.1.4",
|
|
|
"@formily/shared": "^2.1.4",
|
|
|
- "@umijs/route-utils": "^1.0.36",
|
|
|
+ "@umijs/max": "4.0.0",
|
|
|
+ "@umijs/plugins": "4.0.0",
|
|
|
"ahooks": "^3.0.0",
|
|
|
"antd": "4.20.7",
|
|
|
"array-move": "^4.0.0",
|
|
|
"classnames": "^2.2.6",
|
|
|
"dayjs": "^1.10.7",
|
|
|
"lodash": "^4.17.11",
|
|
|
- "moment": "^2.29.3",
|
|
|
"omit.js": "^2.0.2",
|
|
|
"rc-menu": "^9.0.13",
|
|
|
"rc-util": "^5.14.0",
|
|
|
- "react": "^17.0.0",
|
|
|
+ "react": "18.1.0",
|
|
|
+ "react-dom": "18.1.0",
|
|
|
"react-copy-to-clipboard": "^5.1.0",
|
|
|
- "react-dom": "^17.0.0",
|
|
|
"react-flow-renderer": "^9.6.11",
|
|
|
- "react-sortable-hoc": "^2.0.0",
|
|
|
- "umi": "^3.5.0"
|
|
|
+ "react-sortable-hoc": "^2.0.0"
|
|
|
},
|
|
|
"devDependencies": {
|
|
|
- "@types/express": "^4.17.0",
|
|
|
- "@types/history": "^4.7.2",
|
|
|
- "@types/jest": "^26.0.0",
|
|
|
+ "@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",
|
|
|
"@types/lodash": "^4.14.144",
|
|
|
- "@types/react": "^17.0.0",
|
|
|
- "@types/react-dom": "^17.0.0",
|
|
|
- "@types/react-helmet": "^6.1.0",
|
|
|
- "@umijs/fabric": "^2.11.1",
|
|
|
- "@umijs/plugin-antd-dayjs": "^0.3.0",
|
|
|
- "@umijs/plugin-esbuild": "^1.4.1",
|
|
|
- "@umijs/preset-ant-design-pro": "^1.2.0",
|
|
|
- "@umijs/preset-react": "^1.8.17",
|
|
|
- "@umijs/yorkie": "^2.0.3",
|
|
|
- "babel-plugin-import": "^1.13.3",
|
|
|
- "browserslist": "^4.18.1",
|
|
|
- "carlo": "^0.9.46",
|
|
|
- "cross-env": "^7.0.3",
|
|
|
- "cross-port-killer": "^1.1.1",
|
|
|
- "detect-installer": "^1.0.1",
|
|
|
- "eslint-plugin-javascript": "^1.3.4",
|
|
|
- "eslint-plugin-jsx": "^0.1.0",
|
|
|
- "eslint-plugin-typescript": "^0.14.0",
|
|
|
- "express": "^4.17.1",
|
|
|
- "gh-pages": "^3.0.0",
|
|
|
+ "@types/react": "^18.0.0",
|
|
|
+ "@types/react-dom": "^18.0.0",
|
|
|
+ "@unocss/cli": "^0.38.2",
|
|
|
+ "unocss": "^0.38.2",
|
|
|
+ "babel-plugin-import": "^1.13.5",
|
|
|
+ "cross-env": "^7.0.0",
|
|
|
+ "eslint": "^8.17.0",
|
|
|
+ "husky": "^8.0.0",
|
|
|
"lint-staged": "^10.0.0",
|
|
|
- "prettier": "^2.3.2",
|
|
|
- "puppeteer-core": "^8.0.0",
|
|
|
- "react-dev-inspector": "^1.1.1",
|
|
|
- "stylelint": "13.0.0",
|
|
|
- "typescript": "^4.2.2",
|
|
|
- "umi-serve": "^1.9.10",
|
|
|
- "windicss": "^3.2.0",
|
|
|
- "windicss-webpack-plugin": "^1.5.5"
|
|
|
+ "prettier": "^2.6.1",
|
|
|
+ "stylelint": "^14.9.0",
|
|
|
+ "typescript": "^4.7.3"
|
|
|
},
|
|
|
"engines": {
|
|
|
- "node": ">=10.0.0"
|
|
|
+ "node": ">=14.0.0"
|
|
|
}
|
|
|
}
|