-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
77 lines (77 loc) · 2.25 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
{
"name": "insures",
"version": "0.0.1",
"private": true,
"scripts": {
"analyze": "cross-env ANALYZE=1 umi build",
"start": "cross-env umi dev",
"start:noMock": "cross-env MOCK=none umi dev",
"dev": "yarn start:dev",
"start:dev": "cross-env REACT_APP_ENV=dev MOCK=none umi dev",
"start:dev-mock": "cross-env REACT_APP_ENV=dev umi dev",
"start:no-mock": "cross-env MOCK=none umi dev",
"start:no-ui": "cross-env UMI_UI=none umi dev",
"build": "umi build",
"postinstall": "umi generate tmp",
"prettier": "prettier -c --write \"**/*\"",
"test": "umi-test",
"test:coverage": "umi-test --coverage",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ./src",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && yarn lint:style",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:fixJs": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ",
"lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less"
},
"dependencies": {
"@formily/antd": "^1.3.13",
"@formily/antd-components": "^1.3.13",
"@umijs/preset-react": "1.x",
"ahooks": "^2.10.0",
"styled-components": "^5.2.1",
"umi": "^3.4.5"
},
"devDependencies": {
"@types/classnames": "^2.2.11",
"@types/react": "^17.x",
"@types/react-dom": "^17.x",
"@umijs/fabric": "^2.5.7",
"@umijs/plugin-sass": "^1.1.1",
"@umijs/test": "^3.4.5",
"classnames": "^2.2.6",
"cross-env": "^7.0.3",
"husky": "^4.3.7",
"lint-staged": "^10.5.4",
"postcss-px-to-viewport": "^1.1.1",
"prettier": "^2.2.1",
"typescript": "^4.2.3"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
"husky": {
"hooks": {
"pre-commit": "yarn lint-staged"
}
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": "yarn lint-staged:js",
"**/*.{js,jsx,tsx,ts,less,scss,md,json}": [
"prettier --write"
]
},
"engines": {
"node": ">=10.13.0"
},
"checkFiles": [
"src/**/*.js*",
"src/**/*.ts*",
"src/**/*.scss",
"src/**/*.less",
"config/**/*.js*",
"scripts/**/*.js"
]
}