-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
115 lines (115 loc) · 3.13 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
{
"name": "react-now-you-see-me",
"description": "A React component for determining when an element is within a given threshold of the viewport, horizontally.",
"version": "1.5.26-dev.3",
"author": "Jane Web Team",
"license": "MIT",
"main": "lib/index.js",
"files": [
"lib"
],
"scripts": {
"build": "babel -Dd lib src --ignore *.test.js",
"clean": "rm -rf lib && mkdir -p lib",
"cover": "npm run test:jest -- --coverage",
"cover:coveralls": "if [ -n \"$COVERALLS_REPO_TOKEN\" ] ; then coveralls < coverage/lcov.info ; fi || true",
"dev": "webpack-dev-server --quiet --no-info --hot --inline --history-api-fallback --config webpack.config.babel.js",
"doc": "webpack-cli -p --config webpack.config.babel.js",
"format": "prettier --write dev.js \"src/**/*.js\"",
"postbuild": "npm run doc",
"prebuild": "run-s -s clean test:build",
"preversion": "npm run build",
"test": "run-s -s test:lint test:jest",
"test:build": "run-s -s test:lint cover cover:coveralls",
"test:jest": "jest",
"test:lint": "eslint -c .eslintrc.json src dev.js"
},
"homepage": "https://jane.github.io/react-now-you-see-me",
"repository": {
"type": "git",
"url": "[email protected]:jane/react-now-you-see-me.git"
},
"bugs": "https://github.com/jane/react-now-you-see-me/issues",
"keywords": [
"in-view",
"react",
"threshold",
"viewport"
],
"dependencies": {
"lodash.debounce": "4.0.8"
},
"devDependencies": {
"@babel/cli": "7.12.10",
"@babel/core": "7.12.10",
"@babel/plugin-proposal-class-properties": "7.12.1",
"@babel/preset-env": "7.12.11",
"@babel/preset-react": "7.12.10",
"@babel/register": "7.12.10",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.1.0",
"babel-jest": "26.6.3",
"babel-loader": "8.2.2",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"core-js": "3.8.1",
"coveralls": "3.1.0",
"dom-testing-library": "2.5.0",
"eslint": "7.16.0",
"eslint-plugin-jane": "9.0.5",
"husky": "4.3.6",
"jest": "26.6.3",
"lint-staged": "10.5.3",
"marked": "2.0.0",
"npm-run-all": "4.1.5",
"prettier": "2.2.1",
"prop-types": "15.7.2",
"react": "16.12.0",
"react-dom": "16.12.0",
"react-testing-library": "5.2.0",
"regenerator-runtime": "0.13.7",
"sortpack": "2.1.11",
"webpack": "4.44.2",
"webpack-cli": "3.3.12",
"webpack-dev-server": "3.11.0"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.js"
],
"coverageReporters": [
"json-summary",
"lcov",
"text",
"json"
],
"moduleFileExtensions": [
"js",
"json"
],
"modulePaths": [
"<rootDir>/src/"
],
"setupFiles": [
"<rootDir>/config/jest-setup.js"
],
"testEnvironment": "jsdom",
"testPathIgnorePatterns": [
"<rootDir>/(lib|node_modules)/"
],
"testRegex": "\\.test\\.js$"
},
"lint-staged": {
"*.js": [
"prettier --write"
]
},
"peerDependencies": {
"react": ">=16.0.0",
"react-dom": ">=16.0.0"
},
"husky": {
"hooks": {
"pre-commit": "sortpack && lint-staged"
}
}
}