-
Notifications
You must be signed in to change notification settings - Fork 195
/
package.json
67 lines (67 loc) · 1.78 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
{
"name": "react-visibility-sensor",
"version": "5.1.1",
"description": "Sensor component for React that notifies you when it goes in or out of the window viewport.",
"main": "dist/visibility-sensor.js",
"scripts": {
"clean": "rm -rf dist && mkdir dist",
"prebuild": "npm run clean",
"build": "webpack --env=production",
"build-example": "rm -rf example/dist && webpack --env=example",
"build-test": "webpack --env=test",
"publish-gh-pages": "npm run build-example && ./bin/publish-gh-pages",
"test": "npm run build-test && karma start --single-run",
"prepublishOnly": "npm run build"
},
"keywords": [
"react",
"react-component",
"visibility"
],
"author": "joshwnj",
"license": "MIT",
"peerDependencies": {
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.6",
"gh-pages": "^2.0.1",
"husky": "^3.0.1",
"karma": "^4.2.0",
"karma-chrome-launcher": "^3.0.0",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.4",
"lint-staged": "^9.2.1",
"mocha": "^6.2.0",
"prettier": "1.18.2",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"uglify-js": "^3.6.0",
"uglifyjs-webpack-plugin": "^2.1.3",
"webpack": "^4.37.0",
"webpack-cli": "^3.3.6"
},
"repository": {
"type": "git",
"url": "https://github.com/joshwnj/react-visibility-sensor.git"
},
"dependencies": {
"prop-types": "^15.7.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,css,md}": [
"prettier --write",
"git add"
]
}
}