|
@@ -1,6 +1,6 @@
|
|
|
{
|
|
{
|
|
|
"name": "ant-design-pro",
|
|
"name": "ant-design-pro",
|
|
|
- "version": "2.3.1",
|
|
|
|
|
|
|
+ "version": "4.0.0",
|
|
|
"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": {
|
|
@@ -13,23 +13,26 @@
|
|
|
"docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up",
|
|
"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: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",
|
|
"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",
|
|
|
|
|
|
|
+ "fetch:blocks": "node ./scripts/fetch-blocks.js",
|
|
|
|
|
+ "functions:build": "netlify-lambda build ./lambda",
|
|
|
|
|
+ "functions:run": "cross-env NODE_ENV=dev netlify-lambda serve ./lambda",
|
|
|
"generateMock": "node ./scripts/generateMock",
|
|
"generateMock": "node ./scripts/generateMock",
|
|
|
- "lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier",
|
|
|
|
|
|
|
+ "lint": "npm run lint:js && npm run lint:ts && npm run lint:style && npm run lint:prettier",
|
|
|
"lint-staged": "lint-staged",
|
|
"lint-staged": "lint-staged",
|
|
|
"lint-staged:js": "eslint --ext .js",
|
|
"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: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": "umi dev",
|
|
|
"start:no-mock": "cross-env MOCK=none umi dev",
|
|
"start:no-mock": "cross-env MOCK=none umi dev",
|
|
|
"test": "umi test",
|
|
"test": "umi test",
|
|
|
"test:all": "node ./tests/run-tests.js",
|
|
"test:all": "node ./tests/run-tests.js",
|
|
|
"test:component": "umi test ./src/components",
|
|
"test:component": "umi test ./src/components",
|
|
|
- "tslint": "npm run tslint:fix",
|
|
|
|
|
"tslint:fix": "tslint --fix 'src/**/*.ts*'"
|
|
"tslint:fix": "tslint --fix 'src/**/*.ts*'"
|
|
|
},
|
|
},
|
|
|
"husky": {
|
|
"husky": {
|
|
@@ -40,10 +43,11 @@
|
|
|
"lint-staged": {
|
|
"lint-staged": {
|
|
|
"**/*.less": "stylelint --syntax less",
|
|
"**/*.less": "stylelint --syntax less",
|
|
|
"**/*.{js,jsx}": "npm run lint-staged:js",
|
|
"**/*.{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"
|
|
"git add"
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ "**/*.{ts,tsx}": "npm run lint-staged:ts"
|
|
|
},
|
|
},
|
|
|
"browserslist": [
|
|
"browserslist": [
|
|
|
"> 1%",
|
|
"> 1%",
|
|
@@ -51,42 +55,42 @@
|
|
|
"not ie <= 10"
|
|
"not ie <= 10"
|
|
|
],
|
|
],
|
|
|
"dependencies": {
|
|
"dependencies": {
|
|
|
|
|
+ "@ant-design/pro-layout": "^4.2.0",
|
|
|
"@antv/data-set": "^0.10.1",
|
|
"@antv/data-set": "^0.10.1",
|
|
|
"antd": "^3.16.1",
|
|
"antd": "^3.16.1",
|
|
|
- "bizcharts": "^3.5.3-beta.0",
|
|
|
|
|
- "bizcharts-plugin-slider": "^2.1.1-beta.1",
|
|
|
|
|
"classnames": "^2.2.6",
|
|
"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",
|
|
|
|
|
|
|
+ "dva": "^2.4.0",
|
|
|
|
|
+ "lodash": "^4.17.10",
|
|
|
|
|
+ "lodash-decorators": "^6.0.0",
|
|
|
"memoize-one": "^5.0.0",
|
|
"memoize-one": "^5.0.0",
|
|
|
- "moment": "^2.24.0",
|
|
|
|
|
- "netlify-lambda": "^1.4.3",
|
|
|
|
|
- "numeral": "^2.0.6",
|
|
|
|
|
- "nzh": "^1.0.4",
|
|
|
|
|
|
|
+ "moment": "^2.22.2",
|
|
|
"omit.js": "^1.0.0",
|
|
"omit.js": "^1.0.0",
|
|
|
- "path-to-regexp": "^3.0.0",
|
|
|
|
|
- "prop-types": "^15.6.2",
|
|
|
|
|
- "qs": "^6.6.0",
|
|
|
|
|
- "rc-animate": "^2.6.0",
|
|
|
|
|
- "react": "^16.7.0",
|
|
|
|
|
|
|
+ "path-to-regexp": "^2.4.0",
|
|
|
|
|
+ "prop-types": "^15.7.2",
|
|
|
|
|
+ "qs": "^6.7.0",
|
|
|
|
|
+ "rc-animate": "^2.4.4",
|
|
|
|
|
+ "react": "^16.8.5",
|
|
|
"react-container-query": "^0.11.0",
|
|
"react-container-query": "^0.11.0",
|
|
|
"react-copy-to-clipboard": "^5.0.1",
|
|
"react-copy-to-clipboard": "^5.0.1",
|
|
|
"react-document-title": "^2.0.3",
|
|
"react-document-title": "^2.0.3",
|
|
|
"react-dom": "^16.7.0",
|
|
"react-dom": "^16.7.0",
|
|
|
- "react-fittext": "^1.0.0",
|
|
|
|
|
"react-media": "^1.9.2",
|
|
"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.2",
|
|
|
|
|
+ "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.0",
|
|
|
|
|
+ "umi-plugin-react": "^1.8.0-beta.1",
|
|
|
|
|
+ "umi-request": "^1.0.7"
|
|
|
},
|
|
},
|
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
|
|
|
+ "@types/classnames": "^2.2.7",
|
|
|
"@types/history": "^4.7.2",
|
|
"@types/history": "^4.7.2",
|
|
|
|
|
+ "@types/jest": "^24.0.13",
|
|
|
|
|
+ "@types/lodash": "^4.14.123",
|
|
|
|
|
+ "@types/qs": "^6.5.3",
|
|
|
"@types/react": "^16.8.1",
|
|
"@types/react": "^16.8.1",
|
|
|
|
|
+ "@types/react-document-title": "^2.0.3",
|
|
|
"@types/react-dom": "^16.0.11",
|
|
"@types/react-dom": "^16.0.11",
|
|
|
"antd-pro-merge-less": "^1.0.0",
|
|
"antd-pro-merge-less": "^1.0.0",
|
|
|
"antd-theme-webpack-plugin": "^1.2.0",
|
|
"antd-theme-webpack-plugin": "^1.2.0",
|
|
@@ -105,6 +109,7 @@
|
|
|
"eslint-plugin-jsx-a11y": "^6.2.1",
|
|
"eslint-plugin-jsx-a11y": "^6.2.1",
|
|
|
"eslint-plugin-markdown": "^1.0.0",
|
|
"eslint-plugin-markdown": "^1.0.0",
|
|
|
"eslint-plugin-react": "^7.12.4",
|
|
"eslint-plugin-react": "^7.12.4",
|
|
|
|
|
+ "express": "^4.16.4",
|
|
|
"gh-pages": "^2.0.1",
|
|
"gh-pages": "^2.0.1",
|
|
|
"husky": "^2.2.0",
|
|
"husky": "^2.2.0",
|
|
|
"jest-puppeteer": "^4.1.0",
|
|
"jest-puppeteer": "^4.1.0",
|
|
@@ -113,6 +118,8 @@
|
|
|
"lint-staged": "^8.1.1",
|
|
"lint-staged": "^8.1.1",
|
|
|
"merge-umi-mock-data": "^1.0.4",
|
|
"merge-umi-mock-data": "^1.0.4",
|
|
|
"mockjs": "^1.0.1-beta3",
|
|
"mockjs": "^1.0.1-beta3",
|
|
|
|
|
+ "netlify-lambda": "^1.4.3",
|
|
|
|
|
+ "node-fetch": "^2.6.0",
|
|
|
"prettier": "^1.17.0",
|
|
"prettier": "^1.17.0",
|
|
|
"serverless-http": "^2.0.1",
|
|
"serverless-http": "^2.0.1",
|
|
|
"slash2": "^2.0.0",
|
|
"slash2": "^2.0.0",
|
|
@@ -125,8 +132,8 @@
|
|
|
"stylelint-order": "^2.0.0",
|
|
"stylelint-order": "^2.0.0",
|
|
|
"tslint": "^5.12.1",
|
|
"tslint": "^5.12.1",
|
|
|
"tslint-config-prettier": "^1.17.0",
|
|
"tslint-config-prettier": "^1.17.0",
|
|
|
- "tslint-react": "^3.6.0",
|
|
|
|
|
- "umi-plugin-ga": "^1.1.3"
|
|
|
|
|
|
|
+ "tslint-eslint-rules": "^5.4.0",
|
|
|
|
|
+ "tslint-react": "^3.6.0"
|
|
|
},
|
|
},
|
|
|
"optionalDependencies": {
|
|
"optionalDependencies": {
|
|
|
"puppeteer": "^1.12.1"
|
|
"puppeteer": "^1.12.1"
|
|
@@ -140,5 +147,33 @@
|
|
|
"src/**/*.less",
|
|
"src/**/*.less",
|
|
|
"config/**/*.js*",
|
|
"config/**/*.js*",
|
|
|
"scripts/**/*.js"
|
|
"scripts/**/*.js"
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ "create-umi": {
|
|
|
|
|
+ "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"
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|