|
|
@@ -1,6 +1,6 @@
|
|
|
{
|
|
|
"name": "ant-design-pro",
|
|
|
- "version": "2.3.1",
|
|
|
+ "version": "4.0.0",
|
|
|
"private": true,
|
|
|
"description": "An out-of-box UI solution for enterprise applications",
|
|
|
"scripts": {
|
|
|
@@ -13,24 +13,26 @@
|
|
|
"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",
|
|
|
- "functions:build": "npm run generateMock && netlify-lambda build ./lambda",
|
|
|
- "functions:run": "npm run generateMock && cross-env NODE_ENV=dev netlify-lambda serve ./lambda",
|
|
|
- "generateMock": "node ./scripts/generateMock",
|
|
|
- "lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier",
|
|
|
+ "fetch:blocks": "node ./scripts/fetch-blocks.js",
|
|
|
+ "functions:build": "netlify-lambda build ./lambda",
|
|
|
+ "functions:run": "cross-env NODE_ENV=dev netlify-lambda serve ./lambda",
|
|
|
+ "lint": "npm run lint:js && npm run lint:ts && npm run lint:style && npm run lint:prettier",
|
|
|
"lint-staged": "lint-staged",
|
|
|
"lint-staged:js": "eslint --ext .js",
|
|
|
- "lint:fix": "eslint --fix --ext .js src mock tests && stylelint --fix 'src/**/*.less' --syntax less",
|
|
|
+ "lint-staged:ts": "tslint",
|
|
|
+ "lint:fix": "eslint --fix --ext .js src tests && npm run lint:style && npm run tslint:fix",
|
|
|
+ "lint:js": "eslint --ext .js src tests",
|
|
|
"lint:prettier": "check-prettier lint",
|
|
|
- "lint:style": "stylelint 'src/**/*.less' --syntax less",
|
|
|
- "prettier": "node ./scripts/prettier.js",
|
|
|
- "site": "umi build && npm run functions:build",
|
|
|
+ "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
|
|
|
+ "lint:ts": "tslint -p . -c tslint.yml",
|
|
|
+ "prettier": " check-prettier write",
|
|
|
+ "site": "npm run fetch:blocks && npm run functions:build && umi build",
|
|
|
"start": "umi dev",
|
|
|
"start:no-mock": "cross-env MOCK=none umi dev",
|
|
|
"test": "umi test",
|
|
|
"test:all": "node ./tests/run-tests.js",
|
|
|
"test:component": "umi test ./src/components",
|
|
|
- "tslint": "npm run tslint:fix",
|
|
|
- "tslint:fix": "tslint --fix 'src/**/*.ts*'"
|
|
|
+ "tslint:fix": "tslint --fix \"src/**/*.ts*\""
|
|
|
},
|
|
|
"husky": {
|
|
|
"hooks": {
|
|
|
@@ -40,10 +42,11 @@
|
|
|
"lint-staged": {
|
|
|
"**/*.less": "stylelint --syntax less",
|
|
|
"**/*.{js,jsx}": "npm run lint-staged:js",
|
|
|
- "**/*.{js,ts,tsx,json,jsx,less}": [
|
|
|
- "node ./scripts/lint-prettier.js",
|
|
|
+ "**/*.{js,ts,tsx,md,json,jsx,less}": [
|
|
|
+ "npm run prettier",
|
|
|
"git add"
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ "**/*.{ts,tsx}": "npm run lint-staged:ts"
|
|
|
},
|
|
|
"browserslist": [
|
|
|
"> 1%",
|
|
|
@@ -51,86 +54,88 @@
|
|
|
"not ie <= 10"
|
|
|
],
|
|
|
"dependencies": {
|
|
|
- "@antv/data-set": "^0.10.1",
|
|
|
- "antd": "^3.16.1",
|
|
|
- "bizcharts": "^3.5.3-beta.0",
|
|
|
- "bizcharts-plugin-slider": "^2.1.1-beta.1",
|
|
|
+ "@ant-design/pro-layout": "^4.4.2",
|
|
|
+ "@antv/data-set": "^0.10.2",
|
|
|
+ "antd": "^3.19.1",
|
|
|
"classnames": "^2.2.6",
|
|
|
"dva": "^2.4.1",
|
|
|
- "enquire-js": "^0.2.1",
|
|
|
- "express": "^4.16.4",
|
|
|
- "gg-editor": "^2.0.2",
|
|
|
"lodash": "^4.17.11",
|
|
|
"lodash-decorators": "^6.0.1",
|
|
|
- "memoize-one": "^5.0.0",
|
|
|
+ "memoize-one": "^5.0.4",
|
|
|
"moment": "^2.24.0",
|
|
|
- "netlify-lambda": "^1.4.3",
|
|
|
- "numeral": "^2.0.6",
|
|
|
- "nzh": "^1.0.4",
|
|
|
- "omit.js": "^1.0.0",
|
|
|
+ "omit.js": "^1.0.2",
|
|
|
"path-to-regexp": "^3.0.0",
|
|
|
- "prop-types": "^15.6.2",
|
|
|
- "qs": "^6.6.0",
|
|
|
- "rc-animate": "^2.6.0",
|
|
|
- "react": "^16.7.0",
|
|
|
+ "prop-types": "^15.7.2",
|
|
|
+ "qs": "^6.7.0",
|
|
|
+ "rc-animate": "^2.8.3",
|
|
|
+ "react": "^16.8.6",
|
|
|
"react-container-query": "^0.11.0",
|
|
|
"react-copy-to-clipboard": "^5.0.1",
|
|
|
"react-document-title": "^2.0.3",
|
|
|
- "react-dom": "^16.7.0",
|
|
|
- "react-fittext": "^1.0.0",
|
|
|
+ "react-dom": "^16.8.6",
|
|
|
"react-media": "^1.9.2",
|
|
|
- "resize-observer-polyfill": "^1.5.1",
|
|
|
- "umi": "^2.4.4",
|
|
|
- "umi-plugin-react": "^1.7.2",
|
|
|
- "umi-request": "^1.0.5"
|
|
|
+ "react-media-hook2": "^1.0.5",
|
|
|
+ "umi": "^2.7.0-beta.2",
|
|
|
+ "umi-plugin-ga": "^1.1.3",
|
|
|
+ "umi-plugin-locale": "^2.8.0-beta.1",
|
|
|
+ "umi-plugin-pro-block": "^1.3.2",
|
|
|
+ "umi-plugin-react": "^1.8.0-beta.1",
|
|
|
+ "umi-request": "^1.0.7"
|
|
|
},
|
|
|
"devDependencies": {
|
|
|
+ "@types/classnames": "^2.2.7",
|
|
|
"@types/history": "^4.7.2",
|
|
|
- "@types/react": "^16.8.1",
|
|
|
- "@types/react-dom": "^16.0.11",
|
|
|
+ "@types/jest": "^24.0.13",
|
|
|
+ "@types/lodash": "^4.14.133",
|
|
|
+ "@types/qs": "^6.5.3",
|
|
|
+ "@types/react": "^16.8.19",
|
|
|
+ "@types/react-document-title": "^2.0.3",
|
|
|
+ "@types/react-dom": "^16.8.4",
|
|
|
"antd-pro-merge-less": "^1.0.0",
|
|
|
"@ant-design/colors": "^3.1.0",
|
|
|
"babel-eslint": "^10.0.1",
|
|
|
"chalk": "^2.4.2",
|
|
|
- "check-prettier": "^1.0.1",
|
|
|
+ "check-prettier": "^1.0.3",
|
|
|
"cross-env": "^5.2.0",
|
|
|
- "cross-port-killer": "^1.0.1",
|
|
|
+ "cross-port-killer": "^1.1.1",
|
|
|
"enzyme": "^3.9.0",
|
|
|
- "eslint": "^5.13.0",
|
|
|
+ "eslint": "^5.16.0",
|
|
|
"eslint-config-airbnb": "^17.1.0",
|
|
|
- "eslint-config-prettier": "^4.1.0",
|
|
|
+ "eslint-config-prettier": "^4.3.0",
|
|
|
"eslint-plugin-babel": "^5.3.0",
|
|
|
- "eslint-plugin-compat": "^2.6.3",
|
|
|
- "eslint-plugin-import": "^2.16.0",
|
|
|
+ "eslint-plugin-compat": "^3.1.1",
|
|
|
+ "eslint-plugin-import": "^2.17.3",
|
|
|
"eslint-plugin-jsx-a11y": "^6.2.1",
|
|
|
"eslint-plugin-markdown": "^1.0.0",
|
|
|
- "eslint-plugin-react": "^7.12.4",
|
|
|
+ "eslint-plugin-react": "^7.13.0",
|
|
|
+ "express": "^4.17.1",
|
|
|
"gh-pages": "^2.0.1",
|
|
|
- "husky": "^2.2.0",
|
|
|
- "jest-puppeteer": "^4.1.0",
|
|
|
+ "husky": "^2.3.0",
|
|
|
+ "jest-puppeteer": "^4.2.0",
|
|
|
"jsdom-global": "^3.0.2",
|
|
|
"less": "^3.9.0",
|
|
|
- "lint-staged": "^8.1.1",
|
|
|
- "merge-umi-mock-data": "^1.0.4",
|
|
|
+ "lint-staged": "^8.1.7",
|
|
|
"mockjs": "^1.0.1-beta3",
|
|
|
- "prettier": "^1.17.0",
|
|
|
- "serverless-http": "^2.0.1",
|
|
|
+ "netlify-lambda": "^1.4.13",
|
|
|
+ "node-fetch": "^2.6.0",
|
|
|
+ "prettier": "^1.17.1",
|
|
|
+ "serverless-http": "^2.0.2",
|
|
|
"slash2": "^2.0.0",
|
|
|
- "stylelint": "^9.10.1",
|
|
|
- "stylelint-config-css-modules": "^1.3.0",
|
|
|
- "stylelint-config-prettier": "^5.0.0",
|
|
|
- "stylelint-config-rational-order": "^0.1.0",
|
|
|
- "stylelint-config-standard": "^18.2.0",
|
|
|
+ "stylelint": "^10.0.1",
|
|
|
+ "stylelint-config-css-modules": "^1.4.0",
|
|
|
+ "stylelint-config-prettier": "^5.2.0",
|
|
|
+ "stylelint-config-rational-order": "^0.1.2",
|
|
|
+ "stylelint-config-standard": "^18.3.0",
|
|
|
"stylelint-declaration-block-no-ignored-properties": "^2.1.0",
|
|
|
- "stylelint-order": "^2.0.0",
|
|
|
- "tslint": "^5.12.1",
|
|
|
- "tslint-config-prettier": "^1.17.0",
|
|
|
- "tslint-react": "^3.6.0",
|
|
|
- "umi-plugin-ga": "^1.1.3",
|
|
|
+ "stylelint-order": "^3.0.0",
|
|
|
+ "tslint": "^5.17.0",
|
|
|
+ "tslint-config-prettier": "^1.18.0",
|
|
|
+ "tslint-eslint-rules": "^5.4.0",
|
|
|
+ "tslint-react": "^4.0.0",
|
|
|
"webpack-theme-color-replacer": "^1.1.5"
|
|
|
},
|
|
|
"optionalDependencies": {
|
|
|
- "puppeteer": "^1.12.1"
|
|
|
+ "puppeteer": "^1.17.0"
|
|
|
},
|
|
|
"engines": {
|
|
|
"node": ">=10.0.0"
|
|
|
@@ -141,5 +146,44 @@
|
|
|
"src/**/*.less",
|
|
|
"config/**/*.js*",
|
|
|
"scripts/**/*.js"
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ "create-umi": {
|
|
|
+ "ignoreScript": [
|
|
|
+ "docker*",
|
|
|
+ "functions*",
|
|
|
+ "site",
|
|
|
+ "generateMock"
|
|
|
+ ],
|
|
|
+ "ignoreDependencies": [
|
|
|
+ "netlify*",
|
|
|
+ "serverless",
|
|
|
+ "express"
|
|
|
+ ],
|
|
|
+ "copy": [
|
|
|
+ [
|
|
|
+ "create-umi/README.md",
|
|
|
+ "README.md"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "create-umi/package.json",
|
|
|
+ "package.json"
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ "ignore": [
|
|
|
+ ".dockerignore",
|
|
|
+ ".git",
|
|
|
+ ".gitpod.yml",
|
|
|
+ "CODE_OF_CONDUCT.md",
|
|
|
+ "Dockerfile",
|
|
|
+ "Dockerfile.*",
|
|
|
+ "lambda",
|
|
|
+ "LICENSE",
|
|
|
+ "netlify.toml",
|
|
|
+ "README.*.md",
|
|
|
+ "scripts",
|
|
|
+ "azure-pipelines.yml",
|
|
|
+ "docker",
|
|
|
+ "create-umi"
|
|
|
+ ]
|
|
|
+ }
|
|
|
}
|