forked from wellyshen/react-cool-inview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
132 lines (132 loc) · 3.96 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
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
123
124
125
126
127
128
129
130
131
132
{
"name": "react-cool-inview",
"version": "1.2.0",
"description": "React hook to monitor an element enters or leaves the viewport (or another element).",
"license": "MIT",
"homepage": "https://react-cool-inview.netlify.app",
"repository": "https://github.com/wellyshen/react-cool-inview",
"bugs": "https://github.com/wellyshen/react-cool-inview/issues",
"keywords": [
"react",
"hook",
"react-hook",
"inview-hook",
"inviewport-hook",
"in-view-hook",
"in-viewport-hook",
"intersection-hook",
"intersection-observer-hook",
"use",
"use-inview",
"use-inviewport",
"use-in-view",
"use-in-viewport",
"use-intersection",
"use-intersection-observer",
"inview",
"inviewport",
"in-view",
"in-viewport",
"intersection",
"observer",
"intersection-observer",
"intersection-observer-api",
"performance",
"monitor",
"scroll-direction",
"direction",
"viewport",
"visibility",
"lazy",
"lazy-loading",
"scrolling",
"impressions",
"animations",
"typescript"
],
"author": "Welly Shen <[email protected]> (https://github.com/wellyshen)",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"dev": "yarn clean:dev && rollup -c rollup/config.js -w --environment BUILD:dev",
"lint": "run-s lint:*",
"lint:code": "eslint --fix . --ext .js,.ts,.tsx",
"lint:type": "tsc",
"lint:style": "stylelint --fix \"**/*.{css,ts,tsx}\"",
"lint:format": "prettier -w . -u --loglevel silent",
"test": "jest",
"test:watch": "yarn test --watch",
"test:cov": "yarn clean:cov && yarn test --coverage",
"build:demo": "yarn clean:dev && yarn clean:demo && rollup -c rollup/config.js --environment BUILD:demo",
"build:dist": "yarn clean:dist && BABEL_ENV=dist rollup -c rollup/config.js --environment BUILD:dist",
"build": "run-s build:*",
"preversion": "run-s lint test build:dist",
"postversion": "git push --follow-tags --no-verify && npm publish && yarn clean:dist",
"clean:dev": "rimraf demo/.dev",
"clean:demo": "rimraf public",
"clean:dist": "rimraf dist .size-snapshot.json",
"clean:cov": "rimraf coverage",
"clean": "run-p clean:*"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "yarn test"
}
},
"lint-staged": {
"*.{js,ts,tsx}": "eslint --fix",
"*.{css,ts,tsx}": "stylelint --fix",
"**/*": "prettier --write --ignore-unknown"
},
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.10",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@emotion/babel-plugin": "^11.1.2",
"@emotion/react": "^11.1.2",
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-html": "^0.2.0",
"@rollup/plugin-node-resolve": "^10.0.0",
"@rollup/plugin-replace": "^2.3.4",
"@rollup/plugin-url": "^6.0.0",
"@testing-library/react-hooks": "^3.7.0",
"@types/jest": "^26.0.18",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"eslint": "^7.2.0",
"eslint-config-welly": "^1.8.6",
"husky": "^4.3.5",
"jest": "^26.6.3",
"lint-staged": "^10.5.3",
"normalize.css": "^8.0.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.2.1",
"prettier": "^2.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-test-renderer": "^17.0.1",
"rimraf": "^3.0.2",
"rollup": "^2.34.2",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-livereload": "^2.0.0",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-size-snapshot": "^0.12.0",
"rollup-plugin-terser": "^7.0.2",
"stylelint": "^13.8.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^20.0.0",
"ts-jest": "^26.4.4",
"typescript": "^4.1.2"
},
"peerDependencies": {
"react": ">= 16.8.0"
}
}