-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
69 lines (69 loc) · 1.8 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
{
"private": true,
"scripts": {
"start": "cross-env UMI_ENV=dev port=8001 umi dev",
"build": "cross-env UMI_ENV=prod umi build",
"test": "umi test",
"lint": "eslint --ext .js,.jsx,.ts,.tsx src mock",
"lint-fix": "eslint --ext .js,.jsx,.ts,.tsx src mock --fix",
"prettier": "check-prettier lint",
"prettier-fix": "node ./scripts/prettier.js",
"lint-staged": "lint-staged",
"deploy": "npm run build && now"
},
"dependencies": {
"ant-design-pro": "^2.2.1",
"antd": "^3.13.6",
"dva": "^2.5.0-beta.2",
"enquire.js": "^2.1.6",
"react": "^16.8.3",
"react-dom": "^16.8.3"
},
"devDependencies": {
"cross-env": "^5.2.0",
"@types/jest": "^23.3.12",
"@types/react": "^16.7.18",
"@types/react-dom": "^16.0.11",
"@types/react-test-renderer": "^16.0.3",
"@typescript-eslint/eslint-plugin": "^1.4.2",
"@typescript-eslint/parser": "^1.4.2",
"babel-eslint": "^9.0.0",
"check-prettier": "^1.0.1",
"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": "^1.3.1",
"lint-staged": "^7.2.2",
"react-test-renderer": "^16.7.0",
"tslint-react": "^3.6.0",
"umi": "^2.4.2",
"umi-plugin-react": "^1.4.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged"
}
},
"lint-staged": {
"**/*.{js,ts,tsx,json,jsx,less}": [
"node ./scripts/prettier.js",
"git add"
],
"src/**/*.{js,ts,tsx,jsx}": [
"eslint --ext .js,.jsx,.ts,.tsx src mock --fix",
"git add"
]
},
"checkFiles": [
"src/**/*.js*",
"src/**/*.ts*",
"src/**/*.less",
"scripts/**/*.js"
],
"engines": {
"node": ">=8.0.0"
}
}