-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
61 lines (61 loc) · 1.83 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
{
"private": true,
"scripts": {
"start": "umi dev",
"build": "umi build",
"postinstall": "umi generate tmp",
"lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier && npm run tsc",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:prettier": "prettier -c --write \"src/**/*\" --end-of-line auto",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"prettier": "prettier -c --write \"src/**/*\"",
"test": "umi-test",
"test:coverage": "umi-test --coverage",
"deps": "yarn upgrade-interactive --latest"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
"gitHooks": {
"pre-commit": "lint-staged",
"commit-msg": "fabric verify-commit"
},
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write"
]
},
"dependencies": {
"antd-mobile": "^5.24.0",
"antd-mobile-icons": "^0.3.0",
"hox": "^1.1.6",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"umi": "^3.5.23",
"umi-plugin-keep-alive": "^0.0.1-beta.34"
},
"devDependencies": {
"@types/react": "^17.0.44",
"@types/react-dom": "^17.0.14",
"@umijs/fabric": "^3.0.0",
"@umijs/preset-react": "^2.1.6",
"@umijs/test": "^3.5.23",
"eruda": "^2.5.0",
"lint-staged": "^13.0.3",
"postcss-px-to-viewport": "^1.1.1",
"prettier": "^2.7.1",
"stylelint": "13.0.0",
"typescript": "^4.6.4",
"yorkie": "^2.0.0"
},
"resolutions": {
"@types/react": "17.0.44"
}
}