-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
123 lines (123 loc) · 3.6 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
{
"name": "react-polling",
"version": "1.0.9",
"description": "Polling an API made easy with react-polling",
"keywords": [
"react",
"polling",
"react-polling"
],
"main": "lib/index.js",
"files": [
"lib",
"dist"
],
"scripts": {
"start": "webpack-dev-server --config ./webpack.config.dev.js",
"test": "cross-env NODE_ENV=test jest",
"test:watch": "cross-env NODE_ENV=test jest --watch",
"test:coverage": "cross-env NODE_ENV=test jest --coverage && cat ./coverage/lcov.info | coveralls",
"lint": "eslint src/",
"lint:fix": "eslint --fix src/",
"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/*",
"prepublish": "npm run lint && npm run test && npm run build",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate"
},
"lint-staged": {
"src/**/*.{js,jsx}": [
"npm run eslint:fix",
"git add"
],
"src/**/*.{js,jsx,json,css}": [
"prettier --config .prettierrc --write",
"git add"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/vivek12345/react-polling.git"
},
"author": "Vivek Nayyar <[email protected]> (https://viveknayyar.in)",
"license": "MIT",
"bugs": {
"url": "https://github.com/vivek12345/react-polling/issues"
},
"homepage": "https://github.com/vivek12345/react-polling#readme",
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,mjs}"
],
"setupFiles": [
"<rootDir>/setupTests.js"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}",
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}"
],
"testEnvironment": "jsdom",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$"
],
"moduleFileExtensions": [
"web.js",
"js",
"json",
"web.jsx",
"jsx",
"node",
"mjs"
]
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-transform-modules-commonjs": "^7.0.0",
"@babel/plugin-transform-object-assign": "^7.0.0",
"@babel/plugin-transform-spread": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"all-contributors-cli": "^5.4.1",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^9.0.0",
"babel-jest": "^23.4.2",
"babel-loader": "^8.0.0",
"coveralls": "^3.0.2",
"cross-env": "^5.2.0",
"enzyme": "^3.5.0",
"enzyme-adapter-react-16": "^1.3.0",
"enzyme-to-json": "^3.3.4",
"eslint": "^5.4.0",
"eslint-config-react-app": "^2.1.0",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"jest": "^23.5.0",
"jest-cli": "^23.5.0",
"prettier": "^1.14.2",
"prop-types": "^15.6.0",
"raf": "^3.4.0",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"react-test-renderer": "^16.4.2",
"regenerator-runtime": "^0.12.1",
"webpack": "^4.17.1",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.7"
},
"peerDependencies": {
"prop-types": "^15.6.0",
"react": ">=15.0.0",
"react-dom": ">=15.0.0"
}
}