1
|
{
|
1
|
{
|
2
|
- "name": "ant-design-pro",
|
|
|
3
|
- "version": "2.1.1",
|
|
|
4
|
- "description": "An out-of-box UI solution for enterprise applications",
|
|
|
5
|
"private": true,
|
2
|
"private": true,
|
6
|
"scripts": {
|
3
|
"scripts": {
|
7
|
"lint:style": "stylelint \"src/**/*.less\" --syntax less",
|
4
|
"lint:style": "stylelint \"src/**/*.less\" --syntax less",
|
|
@@ -9,23 +6,10 @@ |
|
@@ -9,23 +6,10 @@ |
9
|
"lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
|
6
|
"lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
|
10
|
"lint-staged": "lint-staged",
|
7
|
"lint-staged": "lint-staged",
|
11
|
"lint-staged:js": "eslint --ext .js",
|
8
|
"lint-staged:js": "eslint --ext .js",
|
12
|
- "tslint": "npm run tslint:fix",
|
|
|
13
|
- "tslint:fix": "tslint --fix 'src/**/*.ts*'",
|
|
|
14
|
- "test": "umi test",
|
|
|
15
|
- "test:component": "umi test ./src/components",
|
|
|
16
|
- "test:all": "node ./tests/run-tests.js",
|
|
|
17
|
- "prettier": "node ./scripts/prettier.js"
|
|
|
18
|
- },
|
|
|
19
|
- "dependencies": {
|
|
|
20
|
-
|
9
|
+ "prettier": "node ./_scripts/prettier.js"
|
21
|
},
|
10
|
},
|
22
|
"devDependencies": {
|
11
|
"devDependencies": {
|
23
|
- "@types/react": "^16.7.7",
|
|
|
24
|
- "@types/react-dom": "^16.0.10",
|
|
|
25
|
"babel-eslint": "^10.0.1",
|
12
|
"babel-eslint": "^10.0.1",
|
26
|
- "cross-env": "^5.1.1",
|
|
|
27
|
- "cross-port-killer": "^1.0.1",
|
|
|
28
|
- "enzyme": "^3.7.0",
|
|
|
29
|
"eslint": "^5.4.0",
|
13
|
"eslint": "^5.4.0",
|
30
|
"eslint-config-airbnb": "^17.0.0",
|
14
|
"eslint-config-airbnb": "^17.0.0",
|
31
|
"eslint-config-prettier": "^3.0.1",
|
15
|
"eslint-config-prettier": "^3.0.1",
|
|
@@ -35,40 +19,22 @@ |
|
@@ -35,40 +19,22 @@ |
35
|
"eslint-plugin-jsx-a11y": "^6.1.2",
|
19
|
"eslint-plugin-jsx-a11y": "^6.1.2",
|
36
|
"eslint-plugin-markdown": "^1.0.0-beta.6",
|
20
|
"eslint-plugin-markdown": "^1.0.0-beta.6",
|
37
|
"eslint-plugin-react": "^7.11.1",
|
21
|
"eslint-plugin-react": "^7.11.1",
|
38
|
- "gh-pages": "^2.0.1",
|
22
|
+ "glob": "^7.1.3",
|
39
|
"husky": "^1.2.0",
|
23
|
"husky": "^1.2.0",
|
40
|
- "jest-puppeteer": "^3.5.1",
|
|
|
41
|
"lint-staged": "^8.1.0",
|
24
|
"lint-staged": "^8.1.0",
|
42
|
- "merge-umi-mock-data": "^0.0.3",
|
|
|
43
|
- "mockjs": "^1.0.1-beta3",
|
|
|
44
|
"prettier": "1.15.2",
|
25
|
"prettier": "1.15.2",
|
45
|
- "pro-download": "^1.0.1",
|
|
|
46
|
"stylelint": "^9.8.0",
|
26
|
"stylelint": "^9.8.0",
|
47
|
"stylelint-config-prettier": "^4.0.0",
|
27
|
"stylelint-config-prettier": "^4.0.0",
|
48
|
- "stylelint-config-standard": "^18.0.0",
|
|
|
49
|
- "tslint": "^5.10.0",
|
|
|
50
|
- "tslint-config-prettier": "^1.10.0",
|
|
|
51
|
- "tslint-react": "^3.6.0"
|
|
|
52
|
- },
|
|
|
53
|
- "optionalDependencies": {
|
|
|
54
|
- "puppeteer": "^1.10.0"
|
28
|
+ "stylelint-config-standard": "^18.0.0"
|
55
|
},
|
29
|
},
|
56
|
"lint-staged": {
|
30
|
"lint-staged": {
|
57
|
- "**/*.{js,ts,tsx,json,jsx,less}": [
|
|
|
58
|
- "node ./scripts/lint-prettier.js",
|
31
|
+ "x/**/*.{js,ts,tsx,json,jsx,less}": [
|
|
|
32
|
+ "node ./_scripts/lint-prettier.js",
|
59
|
"git add"
|
33
|
"git add"
|
60
|
],
|
34
|
],
|
61
|
"**/*.{js,jsx}": "npm run lint-staged:js",
|
35
|
"**/*.{js,jsx}": "npm run lint-staged:js",
|
62
|
"**/*.less": "stylelint --syntax less"
|
36
|
"**/*.less": "stylelint --syntax less"
|
63
|
},
|
37
|
},
|
64
|
- "engines": {
|
|
|
65
|
- "node": ">=8.0.0"
|
|
|
66
|
- },
|
|
|
67
|
- "browserslist": [
|
|
|
68
|
- "> 1%",
|
|
|
69
|
- "last 2 versions",
|
|
|
70
|
- "not ie <= 10"
|
|
|
71
|
- ],
|
|
|
72
|
"husky": {
|
38
|
"husky": {
|
73
|
"hooks": {
|
39
|
"hooks": {
|
74
|
"pre-commit": "npm run lint-staged"
|
40
|
"pre-commit": "npm run lint-staged"
|