/
package.json
92 lines (92 loc) 路 2.61 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "react-async",
"version": "4.1.2",
"description": "React component for declarative promise resolution and data fetching",
"keywords": [
"react",
"async",
"promise",
"fetch",
"hook"
],
"author": "Gert Hengeveld <info@ghengeveld.nl>",
"license": "ISC",
"homepage": "https://react-async.dev",
"repository": {
"type": "git",
"url": "git+https://github.com/ghengeveld/react-async.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"lint": "eslint src",
"test": "jest src/Async.spec.js --collectCoverageFrom=src/Async.js",
"test:hook": "jest src/useAsync.spec.js --collectCoverageFrom=src/useAsync.js",
"test:watch": "npm run test -- --watch",
"test:compat": "npm run test:backwards && npm run test:forwards && npm run test:latest",
"test:backwards": "npm i react@16.3.1 react-dom@16.3.1 --no-save && npm test",
"test:forwards": "npm i react@next react-dom@next --no-save && npm test && npm run test:hook",
"test:latest": "npm i react@latest react-dom@latest --no-save && npm test && npm run test:hook",
"build": "pack build",
"publish": "pack publish",
"prepublishOnly": "npm run lint && npm run test:compat && npm run build"
},
"dependencies": {},
"peerDependencies": {
"react": ">=16.3.1"
},
"optionalDependencies": {
"prop-types": ">=15.5.7"
},
"devDependencies": {
"@babel/plugin-proposal-object-rest-spread": "7.3.4",
"@babel/plugin-transform-runtime": "7.2.0",
"@babel/preset-env": "7.3.1",
"@babel/preset-react": "7.0.0",
"@pika/plugin-build-node": "0.3.12",
"@pika/plugin-build-types": "0.3.12",
"@pika/plugin-build-web": "0.3.12",
"@pika/plugin-standard-pkg": "0.3.12",
"babel-eslint": "10.0.1",
"babel-jest": "24.1.0",
"eslint": "5.11.1",
"eslint-config-prettier": "3.3.0",
"eslint-plugin-jest": "22.1.2",
"eslint-plugin-prettier": "3.0.1",
"eslint-plugin-promise": "4.0.1",
"eslint-plugin-react": "7.12.0",
"eslint-plugin-react-hooks": "1.0.1",
"jest": "24.1.0",
"jest-dom": "3.1.2",
"prettier": "1.15.3",
"react": "16.8.1",
"react-dom": "16.8.1",
"react-testing-library": "5.5.3"
},
"jest": {
"collectCoverage": true,
"coverageDirectory": "./coverage/"
},
"@pika/pack": {
"pipeline": [
[
"@pika/plugin-standard-pkg",
{
"exclude": [
"*.spec.js"
]
}
],
[
"@pika/plugin-build-node"
],
[
"@pika/plugin-build-web"
],
[
"@pika/plugin-build-types"
]
]
}
}