-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
132 lines (132 loc) · 3.99 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": "@modus/react-idle",
"version": "1.1.1",
"description": "Render components when browser is idle",
"main": "dist/commonjs/index.js",
"module": "dist/es/index.js",
"jsnext:main": "dist/es/index.js",
"scripts": {
"build": "npm run build:commonjs && npm run build:es && npm run build:umd",
"build:commonjs": "npm run clean:commonjs && cross-env NODE_ENV=commonjs babel src --out-dir dist/commonjs",
"build:es": "npm run clean:es && cross-env NODE_ENV=es babel src --out-dir dist/es",
"build:umd": "npm run clean:umd && cross-env NODE_ENV=rollup rollup -c",
"clean": "npm run clean:commonjs && npm run clean:demo && npm run clean:es && npm run clean:umd",
"clean:commonjs": "rimraf dist/commonjs",
"clean:demo": "rimraf build",
"clean:es": "rimraf dist/es",
"clean:umd": "rimraf dist/umd",
"lint": "eslint . -f table",
"lint:fix": "eslint . -f table --fix",
"lint:ci": "eslint . --format junit --output-file reports/junit/eslint.xml",
"prebuild": "npm run typecheck && npm run lint",
"precommit": "lint-staged",
"prettier": "prettier --write 'src/**/*.js'",
"prettier:diff": "prettier --list-different 'src/**/*.js'",
"prepare": "npm run build",
"test": "cross-env NODE_ENV=test jest",
"test:watch": "cross-env NODE_ENV=test jest --watch",
"test:staged": "cross-env NODE_ENV=test jest --bail --findRelatedTests",
"test:ci": "cross-env NODE_ENV=test jest --runInBand --coverage -i --reporters jest-silent-reporter --testResultsProcessor=jest-junit --ci",
"typecheck": "flow check"
},
"babel": {
"presets": [
"./.babelrc.js"
]
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/ModusCreateOrg/react-idle.git"
},
"bugs": {
"url": "https://github.com/ModusCreateOrg/react-idle/issues"
},
"keywords": [
"react-idle",
"react",
"requestanimationframe",
"react",
"reactjs",
"reactjs",
"onidle",
"whenidle"
],
"author": "Grgur Grisogono <[email protected]>",
"user": "grgur",
"license": "MIT",
"devDependencies": {
"babel-cli": "6.26.0",
"babel-core": "6.26.3",
"babel-eslint": "9.0.0",
"babel-jest": "^23.0.0",
"babel-plugin-external-helpers": "6.22.0",
"babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
"babel-plugin-transform-runtime": "6.23.0",
"babel-preset-env": "1.7.0",
"babel-preset-flow": "6.23.0",
"babel-preset-react": "6.24.1",
"babel-preset-stage-2": "6.24.1",
"cross-env": "5.1.6",
"eslint": "5.6.0",
"eslint-config-airbnb": "16.1.0",
"eslint-config-prettier": "2.9.0",
"eslint-plugin-flowtype": "2.49.3",
"eslint-plugin-import": "2.12.0",
"eslint-plugin-jest": "21.17.0",
"eslint-plugin-jsx-a11y": "6.0.3",
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.9.1",
"flow-bin": "0.98.0",
"flow-copy-source": "2.0.4",
"husky": "0.14.3",
"jest": "23.6.0",
"jest-junit": "5.1.0",
"jest-silent-reporter": "0.0.5",
"lint-staged": "7.2.0",
"prettier": "1.13.5",
"react": "16.4.1",
"react-dom": "16.4.1",
"react-test-renderer": "16.4.1",
"rimraf": "2.6.2",
"rollup": "0.68.0",
"rollup-plugin-babel": "3.0.4",
"rollup-plugin-commonjs": "9.1.3",
"rollup-plugin-node-resolve": "3.3.0",
"rollup-plugin-replace": "2.0.0",
"rollup-plugin-terser": "3.0.0"
},
"peerDependencies": {
"react": "^15.3.0 || ^16.0.0-alpha",
"react-dom": "^15.3.0 || ^16.0.0-alpha"
},
"lint-staged": {
"src/**/*.js": [
"npm run test:staged",
"npm run lint:fix",
"git add"
]
},
"jest": {
"globals": {
"__DEV__": true
},
"roots": [
"./src"
],
"verbose": true,
"testRegex": ".+\\.spec\\.js$",
"moduleFileExtensions": ["js", "mjs"],
"transform": {
"^.+\\.(js|mjs)?$": "babel-jest"
},
"transformIgnorePatterns": [
"node_modules/(?!(idlize)/)"
]
},
"dependencies": {
"idlize": "0.1.1"
}
}