-
Notifications
You must be signed in to change notification settings - Fork 50
/
package.json
100 lines (100 loc) · 3.04 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
{
"name": "react-on-screen",
"version": "2.1.1",
"description": "A wrapper component to track if your react component is visible on screen",
"keywords": [
"react",
"viewport",
"react-component",
"visible",
"track",
"react-on-screen",
"screen"
],
"main": "lib/index.js",
"typings": "./index.d.ts",
"scripts": {
"start": "webpack-dev-server --config ./webpack.config.dev.js",
"test": "cross-env NODE_ENV=test jest",
"test:coverage": "cross-env NODE_ENV=test jest --coverage && cat ./coverage/lcov.info | coveralls",
"lint": "eslint src/",
"lint:fix": "eslint --fix src/",
"prettier-all": "prettier --single-quote --write 'src/**/*.js'",
"prebuild": "npm run test",
"build": "npm run build:es && npm run build:umd",
"build:es": "npm run clean:es && cross-env NODE_ENV=production babel --ignore=src/__tests__ src -d lib",
"build:umd": "npm run clean:umd && cross-env NODE_ENV=production webpack",
"clean:es": "rimraf lib/*",
"clean:umd": "rimraf dist/*"
},
"repository": {
"type": "git",
"url": "git+https://github.com/fkhadra/react-on-screen.git"
},
"author": "Fadi Khadra <[email protected]> (https://fkhadra.github.io)",
"license": "MIT",
"bugs": {
"url": "https://github.com/fkhadra/react-on-screen/issues"
},
"homepage": "https://github.com/fkhadra/react-on-screen#readme",
"jest": {
"verbose": true,
"setupFiles": [
"raf/polyfill",
"<rootDir>/setupTests.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
},
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
"@babel/plugin-transform-object-assign": "^7.0.0",
"@babel/plugin-transform-spread": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"@types/react": "^16.4.18",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-loader": "^8.0.4",
"coveralls": "^3.0.0",
"cross-env": "^5.2.0",
"css-loader": "^1.0.0",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.0.0",
"enzyme-to-json": "^3.1.4",
"eslint": "^4.7.2",
"eslint-config-react-app": "^2.0.1",
"eslint-plugin-flowtype": "^2.37.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.4.0",
"html-webpack-plugin": "^3.2.0",
"jest": "^21.2.1",
"jest-cli": "^21.2.1",
"prettier": "^1.14.3",
"raf": "^3.4.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0",
"rimraf": "^2.6.2",
"sinon": "^2.1.0",
"style-loader": "^0.23.1",
"webpack": "^4.23.1",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10"
},
"dependencies": {
"lodash.throttle": "^4.1.1",
"prop-types": "^15.6.0",
"shallowequal": "^1.0.2"
},
"peerDependencies": {
"react": ">=15.0.0",
"react-dom": ">=15.0.0"
}
}