|
4 | 4 | "private": true,
|
5 | 5 | "description": "An out-of-box UI solution for enterprise applications",
|
6 | 6 | "scripts": {
|
7 |
| - "analyze": "cross-env ANALYZE=1 umi build", |
8 |
| - "build": "umi build", |
9 |
| - "deploy": "npm run site && npm run gh-pages", |
10 |
| - "fetch:blocks": "pro fetch-blocks --branch antd@4 && npm run prettier", |
11 |
| - "format-imports": "cross-env import-sort --write '**/*.{js,jsx,ts,tsx}'", |
12 |
| - "gh-pages": "cp CNAME ./dist/ && gh-pages -d dist", |
13 |
| - "i18n-remove": "pro i18n-remove --locale=zh-CN --write", |
14 | 7 | "lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
|
15 | 8 | "lint-staged": "lint-staged",
|
16 | 9 | "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
|
17 | 10 | "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
|
18 | 11 | "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
|
19 | 12 | "lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
|
20 | 13 | "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
|
21 |
| - "prettier": "prettier -c --write \"**/*\"", |
22 |
| - "start": "umi dev", |
23 |
| - "start:no-mock": "cross-env MOCK=none umi dev", |
24 |
| - "start:no-ui": "cross-env UMI_UI=none umi dev", |
25 |
| - "test": "umi test", |
26 |
| - "test:all": "node ./tests/run-tests.js", |
27 |
| - "test:component": "umi test ./src/components", |
28 |
| - "tsc": "tsc", |
29 |
| - "ui": "umi ui" |
| 14 | + "prettier": "prettier -c --write \"**/*\"" |
30 | 15 | },
|
31 |
| - "husky": { |
32 |
| - "hooks": { |
33 |
| - "pre-commit": "npm run lint-staged" |
34 |
| - } |
35 |
| - }, |
36 |
| - "lint-staged": { |
37 |
| - "**/*.less": "stylelint --syntax less", |
38 |
| - "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js", |
39 |
| - "**/*.{js,jsx,tsx,ts,less,md,json}": [ |
40 |
| - "prettier --write", |
41 |
| - "git add" |
42 |
| - ] |
43 |
| - }, |
44 |
| - "browserslist": [ |
45 |
| - "> 1%", |
46 |
| - "last 2 versions", |
47 |
| - "not ie <= 10" |
48 |
| - ], |
49 | 16 | "dependencies": {
|
50 |
| - "@ant-design/compatible": "^0.0.1-rc.0", |
| 17 | + "@ant-design/compatible": "^1.0.0", |
51 | 18 | "@ant-design/icons": "^4.0.0-alpha.19",
|
52 | 19 | "@ant-design/pro-layout": "^5.0.0",
|
53 | 20 | "@ant-design/pro-table": "^2.0.0",
|
54 | 21 | "@antv/data-set": "^0.10.2",
|
55 | 22 | "@types/lodash.debounce": "^4.0.6",
|
56 | 23 | "@types/lodash.isequal": "^4.5.5",
|
57 | 24 | "@types/numeral": "^0.0.26",
|
58 |
| - "antd": "^4.0.0-rc.1", |
| 25 | + "antd": "^4.0.0", |
59 | 26 | "bizcharts": "^3.5.3-beta.0",
|
60 | 27 | "bizcharts-plugin-slider": "^2.1.1-beta.1",
|
61 | 28 | "classnames": "^2.2.6",
|
|
70 | 37 | "path-to-regexp": "2.4.0",
|
71 | 38 | "qs": "^6.9.0",
|
72 | 39 | "react": "^16.8.6",
|
73 |
| - "react-copy-to-clipboard": "^5.0.1", |
74 | 40 | "react-dom": "^16.8.6",
|
75 | 41 | "react-fittext": "^1.0.0",
|
76 | 42 | "react-helmet": "^5.2.1",
|
77 | 43 | "redux": "^4.0.1",
|
78 |
| - "umi": "^2.13.0", |
79 |
| - "umi-plugin-antd-icon-config": "^1.0.2", |
80 |
| - "umi-plugin-antd-theme": "^1.0.1", |
81 |
| - "umi-plugin-pro-block": "^1.3.2", |
| 44 | + "umi": "^3.2.7", |
82 | 45 | "umi-plugin-react": "^1.14.10",
|
83 | 46 | "umi-request": "^1.0.8",
|
84 | 47 | "use-merge-value": "^1.0.1"
|
85 | 48 | },
|
86 |
| - "devDependencies": { |
87 |
| - "@ant-design/pro-cli": "^1.0.17", |
88 |
| - "@types/classnames": "^2.2.7", |
89 |
| - "@types/express": "^4.17.0", |
90 |
| - "@types/history": "^4.7.2", |
91 |
| - "@types/jest": "^24.0.24", |
92 |
| - "@types/lodash": "^4.14.144", |
93 |
| - "@types/qs": "^6.5.3", |
94 |
| - "@types/react": "^16.9.17", |
95 |
| - "@types/react-dom": "^16.8.4", |
96 |
| - "@types/react-helmet": "^5.0.13", |
97 |
| - "@umijs/fabric": "2.0.0", |
98 |
| - "chalk": "^3.0.0", |
99 |
| - "check-prettier": "^1.0.3", |
100 |
| - "cross-env": "^6.0.0", |
101 |
| - "cross-port-killer": "^1.1.1", |
102 |
| - "enzyme": "^3.11.0", |
103 |
| - "express": "^4.17.1", |
104 |
| - "gh-pages": "^2.0.1", |
105 |
| - "husky": "^4.0.7", |
106 |
| - "import-sort-cli": "^6.0.0", |
107 |
| - "import-sort-parser-babylon": "^6.0.0", |
108 |
| - "import-sort-parser-typescript": "^6.0.0", |
109 |
| - "import-sort-style-module": "^6.0.0", |
110 |
| - "jsdom-global": "^3.0.2", |
111 |
| - "lint-staged": "^9.0.0", |
112 |
| - "mockjs": "^1.0.1-beta3", |
113 |
| - "node-fetch": "^2.6.0", |
114 |
| - "prettier": "^2.0.1", |
115 |
| - "pro-download": "1.0.1", |
116 |
| - "stylelint": "^13.0.0", |
117 |
| - "umi-plugin-ga": "^1.1.3", |
118 |
| - "umi-plugin-pro": "^1.0.2", |
119 |
| - "umi-types": "^0.5.9" |
120 |
| - }, |
121 | 49 | "engines": {
|
122 | 50 | "node": ">=10.0.0"
|
123 |
| - }, |
124 |
| - "checkFiles": [ |
125 |
| - "src/**/*.js*", |
126 |
| - "src/**/*.ts*", |
127 |
| - "src/**/*.less", |
128 |
| - "config/**/*.js*", |
129 |
| - "scripts/**/*.js" |
130 |
| - ] |
| 51 | + } |
131 | 52 | }
|
0 commit comments