This repository was archived by the owner on Sep 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
122 lines (122 loc) · 3.49 KB
/
Copy pathpackage.json
File metadata and controls
122 lines (122 loc) · 3.49 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "@wetrial/hooks",
"version": "3.1.0",
"description": "react hooks library",
"keywords": [
"react hooks"
],
"main": "./lib/index.js",
"module": "./es/index.js",
"types": "./lib/index.d.ts",
"authors": {
"name": "xiexingen",
"email": "1002275364@qq.com"
},
"publishConfig": {
"registry": "https://registry.npmjs.com/"
},
"repository": "https://github.com/wetrial/hooks",
"homepage": "https://github.com/wetrial/hooks",
"scripts": {
"start": "npm run dev",
"dev": "dumi dev",
"js": "node ./.ts2js.js",
"build": "node ./scripts/clean-old-build.js && father build && tsc --declarationDir ./lib && tsc --declarationDir ./es && node ./scripts/build-wind-up.js",
"test": "father test",
"cov": "father test --coverage",
"help": "father help",
"precommit": "father pre-commit",
"build:doc": "dumi build",
"prerelease": "yarn version --prerelease && git push origin master && git push origin --tags",
"patch": "yarn version --patch && git push origin master && git push origin --tags",
"minor": "yarn version --minor && git push origin master && git push origin --tags",
"major": "yarn version --major && git push origin master && git push origin --tags",
"lint": "yarn lint:js && yarn lint:style && yarn lint:prettier",
"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 && yarn lint:style",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./",
"lint:prettier": "check-prettier lint",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"prettier": "prettier -c --write \"**/*\""
},
"files": [
"dist",
"lib",
"es",
"README.md",
"LICENSE",
"package.json"
],
"dependencies": {
"@ant-design/icons": "^4.2.2",
"@wetrial/core": "^3.3.1",
"ahooks": "^2.5.0",
"antd": "^4.6.0",
"classnames": "^2.2.6",
"history": "^4.10.1",
"lodash": "^4.17.20",
"path-to-regexp": "^6.1.0",
"pubsub-js": "^1.8.0",
"react": "^16.13.1"
},
"peerDependencies": {
"@ant-design/icons": "@*",
"@wetrial/core": "@*",
"ahooks": "@*",
"antd": "@*",
"classnames": "@*",
"history": "@*",
"lodash": "@*",
"path-to-regexp": "@*",
"pubsub-js": "@*",
"react": "@*"
},
"devDependencies": {
"@testing-library/react-hooks": "^3.4.1",
"@types/classnames": "^2.2.10",
"@types/jest": "^26.0.8",
"@types/lodash": "^4.14.159",
"@types/pubsub-js": "^1.8.0",
"@umijs/fabric": "^2.2.2",
"@umijs/preset-react": "^1.5.22",
"babel-plugin-import": "^1.13.0",
"babel-plugin-transform-async-to-promises": "^0.8.15",
"check-prettier": "^1.0.3",
"create-test-server": "^3.0.1",
"del": "^5.1.0",
"dumi": "^1.0.34",
"enzyme": "^3.11.0",
"father": "^2.29.6",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"prettier": "^2.0.5",
"react-test-renderer": "^16.13.1",
"resize-observer-polyfill": "^1.5.1",
"sylvanas": "^0.4.3",
"typescript": "^4.0.2",
"umi": "^3.2.16"
},
"engines": {
"node": ">=12.16.3"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
"prettier --write",
"git add"
],
"*.ts?(x)": [
"prettier --parser=typescript --write",
"git add"
]
},
"checkFiles": [
"src/**/*.ts*"
],
"license": "MIT"
}