-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
92 lines (92 loc) · 2.69 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": "@awardit/react-use-browser",
"version": "1.0.0",
"description": "A hook enabling client markup to differ from server markup when using Server-Side-Rendering",
"author": "Martin Wernstål <[email protected]>",
"license": "MIT",
"keywords": [
"ssr",
"react",
"hook"
],
"repository": {
"type": "git",
"url": "https://github.com/awardit/react-use-browser.git"
},
"bugs": "https://github.com/awardit/react-use-browser/issues",
"homepage": "https://github.com/awardit/react-use-browser",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"browser": "dist/browser.esm.js",
"scripts": {
"build": "npm-run-all build:*",
"build:rollup": "rollup -c rollup.config.js",
"build:flow": "cp build/flowstub.js dist/index.esm.js.flow && cp build/flowstub.js dist/index.js.flow && cp build/flowstub.js dist/browser.esm.js.flow",
"coverage": "nyc --reporter=html ava --verbose",
"clean": "rm -rf dist",
"distclean": "rm -rf package-lock.json node_modules dist",
"flow": "flow check",
"prepack": "npm run clean && npm run test && npm run build",
"test": "npm-run-all test:*",
"test:flow": "flow status",
"test:ava": "ava --verbose",
"test:xo": "xo",
"watch": "nodemon -w src -w test --exec \"npm run -q test || true\""
},
"devDependencies": {
"@ava/babel": "^1.0.1",
"@awardit/eslint-config-xo": "^0.3.0",
"@babel/core": "^7.10.3",
"@babel/plugin-syntax-flow": "^7.10.1",
"@babel/plugin-transform-flow-strip-types": "^7.10.1",
"@babel/preset-env": "^7.10.3",
"@babel/preset-react": "^7.10.1",
"@babel/register": "^7.10.3",
"@rollup/plugin-babel": "^5.0.4",
"@rollup/plugin-commonjs": "^13.0.0",
"@rollup/plugin-node-resolve": "^8.1.0",
"@testing-library/react": "^10.4.3",
"ava": "^3.9.0",
"cross-env": "^7.0.2",
"flow-bin": "^0.127.0",
"jsdom": "^16.2.2",
"ninos": "^3.0.0",
"nodemon": "^2.0.4",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"rollup": "^2.18.0",
"xo": "^0.32.0"
},
"peerDependency": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"publishConfig": {
"access": "public"
},
"xo": {
"extends": [
"@awardit/eslint-config-xo"
],
"ignores": [
"rollup.config.js"
],
"overrides": [
{
"files": "**/*.test.js",
"rules": {
"func-style": "off",
"ava/prefer-async-await": "off"
}
}
],
"rules": {
"flowtype/require-parameter-type": "off",
"flowtype/require-return-type": "off",
"prefer-arrow/prefer-arrow-functions": "off",
"react/no-danger": "off"
}
}
}