146 lines
4.7 KiB
JSON
146 lines
4.7 KiB
JSON
{
|
|
"name": "ant-design-pro",
|
|
"version": "6.0.0",
|
|
"private": true,
|
|
"description": "An out-of-box UI solution for enterprise applications",
|
|
"scripts": {
|
|
"analyze": "cross-env ANALYZE=1 max build",
|
|
"build": "max build",
|
|
"deploy": "npm run build && npm run gh-pages",
|
|
"dev": "npm run start:dev",
|
|
"docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./",
|
|
"docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build",
|
|
"docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up",
|
|
"docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build",
|
|
"docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up",
|
|
"docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro",
|
|
"docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro",
|
|
"gh-pages": "gh-pages -d dist",
|
|
"i18n-remove": "pro i18n-remove --locale=zh-CN --write",
|
|
"postinstall": "max setup",
|
|
"jest": "jest",
|
|
"lint": "npm run lint:js && 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 ",
|
|
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
|
|
"lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
|
|
"openapi": "max openapi",
|
|
"prepare": "cd .. && husky install",
|
|
"prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
|
|
"preview": "npm run build && max preview --port 8000",
|
|
"record": "cross-env NODE_ENV=development REACT_APP_ENV=test max record --scene=login",
|
|
"serve": "umi-serve",
|
|
"start": "cross-env UMI_ENV=dev max dev",
|
|
"start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev UMI_DEV_SERVER_COMPRESS=none max dev",
|
|
"start:mock": "cross-env REACT_APP_ENV=dev UMI_ENV=dev max dev",
|
|
"start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev max dev",
|
|
"start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev max dev",
|
|
"test": "jest",
|
|
"test:coverage": "npm run jest -- --coverage",
|
|
"test:update": "npm run jest -- -u",
|
|
"tsc": "tsc --noEmit"
|
|
},
|
|
"lint-staged": {
|
|
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
|
|
"**/*.{js,jsx,tsx,ts,less,md,json}": [
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"browserslist": [
|
|
"> 1%",
|
|
"last 2 versions",
|
|
"not ie <= 10"
|
|
],
|
|
"dependencies": {
|
|
"@ant-design/icons": "^5.0.0",
|
|
"@ant-design/pro-components": "^2.4.4",
|
|
"@ant-design/use-emotion-css": "1.0.4",
|
|
"@antv/g6": "^4.8.24",
|
|
"@antv/hierarchy": "^0.6.12",
|
|
"@types/crypto-js": "^4.2.2",
|
|
"@umijs/route-utils": "^4.0.1",
|
|
"antd": "~5.21.4",
|
|
"classnames": "^2.3.2",
|
|
"crypto-js": "^4.2.0",
|
|
"echarts": "^5.5.0",
|
|
"fabric": "^5.3.0",
|
|
"highlight.js": "^11.7.0",
|
|
"lodash": "^4.17.21",
|
|
"moment": "^2.30.1",
|
|
"omit.js": "^2.0.2",
|
|
"pnpm": "^8.9.0",
|
|
"query-string": "^8.1.0",
|
|
"rc-menu": "^9.8.4",
|
|
"rc-util": "^5.30.0",
|
|
"react": "^18.2.0",
|
|
"react-activation": "^0.12.4",
|
|
"react-cropper": "^2.3.3",
|
|
"react-dev-inspector": "^1.8.1",
|
|
"react-dom": "^18.2.0",
|
|
"react-draggable": "^4.4.6",
|
|
"react-helmet-async": "^1.3.0",
|
|
"react-highlight": "^0.15.0"
|
|
},
|
|
"devDependencies": {
|
|
"@ant-design/pro-cli": "^3.1.0",
|
|
"@testing-library/react": "^14.0.0",
|
|
"@types/antd": "^1.0.0",
|
|
"@types/express": "^4.17.14",
|
|
"@types/jest": "^29.5.1",
|
|
"@types/lodash": "^4.14.194",
|
|
"@types/react": "^18.0.38",
|
|
"@types/react-dom": "^18.0.11",
|
|
"@types/react-helmet": "^6.1.5",
|
|
"@types/react-highlight": "^0.12.5",
|
|
"@umijs/lint": "^4.0.66",
|
|
"@umijs/max": "^4.0.66",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^8.39.0",
|
|
"express": "^4.18.2",
|
|
"gh-pages": "^5.0.0",
|
|
"husky": "^8.0.3",
|
|
"jest": "^29.5.0",
|
|
"jest-environment-jsdom": "^29.5.0",
|
|
"lint-staged": "^13.2.0",
|
|
"mockjs": "^1.1.0",
|
|
"prettier": "^2.8.1",
|
|
"swagger-ui-dist": "^4.18.2",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "^5.0.4",
|
|
"umi-presets-pro": "^2.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.14.0"
|
|
},
|
|
"create-umi": {
|
|
"ignoreScript": [
|
|
"docker*",
|
|
"functions*",
|
|
"site",
|
|
"generateMock"
|
|
],
|
|
"ignoreDependencies": [
|
|
"netlify*",
|
|
"serverless"
|
|
],
|
|
"ignore": [
|
|
".dockerignore",
|
|
".git",
|
|
".github",
|
|
".gitpod.yml",
|
|
"CODE_OF_CONDUCT.md",
|
|
"Dockerfile",
|
|
"Dockerfile.*",
|
|
"lambda",
|
|
"LICENSE",
|
|
"netlify.toml",
|
|
"README.*.md",
|
|
"azure-pipelines.yml",
|
|
"docker",
|
|
"CNAME",
|
|
"create-umi"
|
|
]
|
|
}
|
|
}
|