-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpackage.json
88 lines (88 loc) · 2.29 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"private": true,
"name": "echi_umi_project",
"version": "0.0.1",
"scripts": {
"analyze": "cross-env ANALYZE=1 umi build",
"start": "umi dev",
"start:no-mock": "cross-env MOCK=none umi dev",
"build": "umi build",
"test": "umi test",
"lint:fix": "npm run lint:js && npm run lint:style && npm run prettier",
"lint:js": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"lint:prettier": "check-prettier lint",
"prettier": "prettier --write 'src/**/*.{js,jsx,ts,tsx,less}'",
"precommit": "lint-staged"
},
"husky": {
"hooks": {
"pre-commit": "npm run precommit"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix --ext .ts,.tsx",
"npm run prettier",
"git add"
],
"*.{js,jsx}": [
"eslint --fix --ext .js,.jsx",
"npm run prettier",
"git add"
],
"**/*.less": [
"stylelint --fix --syntax less",
"npm run prettier",
"git add"
]
},
"dependencies": {
"antd": "^3.19.5",
"classnames": "^2.2.6",
"dva": "^2.6.0-beta.6",
"gg-editor": "^2.0.4",
"lodash": "^4.17.15",
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
"devDependencies": {
"@types/classnames": "^2.2.9",
"@types/jest": "^23.3.12",
"@types/react": "^16.7.18",
"@types/react-dom": "^16.0.11",
"@types/react-test-renderer": "^16.0.3",
"@umijs/fabric": "^1.1.7",
"babel-eslint": "^9.0.0",
"check-prettier": "^1.0.3",
"cross-env": "^5.2.0",
"eslint": "^5.4.0",
"eslint-config-umi": "^1.4.0",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.11.1",
"husky": "^3.0.0",
"lint-staged": "^7.2.2",
"prettier": "^1.18.2",
"react-test-renderer": "^16.7.0",
"stylelint": "^10.1.0",
"tslint": "^5.12.0",
"tslint-config-prettier": "^1.18.0",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.6.0",
"umi": "^2.7.0",
"umi-plugin-react": "^1.8.0",
"umi-types": "^0.2.0"
},
"engines": {
"node": ">=8.0.0"
},
"checkFiles": [
"src/**/*.js*",
"src/**/*.ts*",
"src/**/*.less",
"config/**/*.js*",
"scripts/**/*.js"
]
}