Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
70 lines (70 loc) · 1.97 KB
/
Copy pathpackage.json
File metadata and controls
70 lines (70 loc) · 1.97 KB
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
{
"private": true,
"scripts": {
"dev": "cross-env PAGES_PATH='ListBasicList/src' umi dev",
"format-imports": "import-sort --write '**/*.{js,jsx,ts,tsx}'",
"lint": "npm run lint:js && npm run lint:style",
"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 ./ && npm run lint:style",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./",
"lint:style": "stylelint --fix '**/*.less' --syntax less",
"prettier": "prettier -c --write **/*",
"screenshot": "block-screenshot",
"start": "umi dev"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged"
}
},
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write",
"git add"
],
"**/*.{js,jsx}": "npm run lint-staged:js",
"**/*.{js,ts,tsx}": "npm run lint-staged:js"
},
"dependencies": {
"@types/react-dom": "^16.8.4",
"antd": "3.20.0",
"block-screenshot": "^1.0.0",
"cross-env": "^5.2.0",
"numeral": "^2.0.6",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"umi": "^2.6.17",
"umi-plugin-block-dev": "2.2.0-beta.0",
"umi-plugin-react": "^1.9.7",
"umi-request": "^1.0.0"
},
"devDependencies": {
"@types/classnames": "^2.2.7",
"@types/numeral": "^0.0.25",
"@umijs/fabric": "^1.0.5",
"check-prettier": "^1.0.3",
"eslint": "^5.16.0",
"husky": "^2.2.0",
"import-sort-cli": "^6.0.0",
"import-sort-parser-babylon": "^6.0.0",
"import-sort-parser-typescript": "^6.0.0",
"import-sort-style-module": "^6.0.0",
"lint-staged": "^8.1.0",
"prettier": "1.15.2",
"stylelint": "^10.0.1",
"typescript": "^3.5.1"
},
"peerDependencies": {
"antd": "^3.17.0"
},
"optionalDependencies": {
"puppeteer": "^1.17.0"
},
"checkFiles": [
"**/*.ts*",
"**/*.less",
"**/*.md"
]
}