-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
83 lines (83 loc) · 2.16 KB
/
package.json
File metadata and controls
83 lines (83 loc) · 2.16 KB
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
{
"name": "react-device-switch",
"version": "0.0.0-semantically-released",
"description": "A react component to render different content on mobile and desktop. Uses window.matchMedia API.",
"main": "dist/index.cjs.js",
"umd:main": "dist/index.umd.js",
"module": "dist/index.es.js",
"jsnext:main": "dist/index.es.js",
"source": "src/index.js",
"files": [
"dist"
],
"scripts": {
"build": "microbundle",
"dev": "microbundle watch",
"lint": "eslint \"src/**/*.{js,jsx}\"",
"precommit": "lint-staged",
"test": "jest",
"test:watch": "jest --watch --no-cache --notify",
"test:cover": "jest --coverage"
},
"lint-staged": {
"*.{js,jsx}": [
"prettier --write",
"git add",
"eslint",
"jest --bail --findRelatedTests --no-cache"
],
"*.{json,md}": [
"prettier --write",
"git add"
]
},
"jest": {
"collectCoverageFrom": [
"src/**/*.js"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
},
"peerDependencies": {
"prop-types": ">=15",
"react": ">=15"
},
"repository": {
"type": "git",
"url": "https://github.com/damusnet/react-device-switch.git"
},
"bugs": {
"url": "https://github.com/damusnet/react-device-switch/issues"
},
"homepage": "https://github.com/damusnet/react-device-switch#readme",
"author": "Damien Varron <damien@varron.fr>",
"license": "MIT",
"devDependencies": {
"babel-eslint": "^8.2.5",
"babel-jest": "^23.2.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"eslint": "^5.0.1",
"eslint-config-airbnb": "^17.0.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^6.1.0",
"eslint-plugin-react": "^7.10.0",
"husky": "^0.14.3",
"jest": "^23.3.0",
"lint-staged": "^7.2.0",
"microbundle": "^0.5.1",
"prettier": "^1.13.7",
"prop-types": "^15.6.2",
"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-testing-library": "^4.1.2"
}
}