forked from etienne-martin/device-detector-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
123 lines (123 loc) · 2.82 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": "device-detector-js",
"version": "1.1.0",
"description": "A javascript port of Matomo device-detector",
"homepage": "https://github.com/etienne-martin/device-detector-js",
"keywords": [
"user-agent",
"parsing",
"parser",
"device",
"mobile",
"tablet",
"phone",
"desktop",
"os",
"bot",
"browser",
"detector"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"author": {
"name": "Etienne Martin",
"url": "http://etiennemartin.ca/"
},
"contributors": [
"Alex Beauchemin <[email protected]> (https://github.com/AlexBeauchemin)"
],
"repository": {
"type": "git",
"url": "https://github.com/etienne-martin/device-detector-js"
},
"bugs": {
"url": "https://github.com/etienne-martin/device-detector-js/issues"
},
"engines": {
"node": ">= 8.11.4"
},
"license": "LGPL-3.0",
"scripts": {
"dev": "tsc --pretty --watch",
"predev": "sh install.sh",
"lint": "tslint -c tslint.json -p tsconfig.json --fix",
"pretest": "npm run lint",
"test": "jest src --coverage --verbose",
"test:watch": "jest src --coverage --verbose --watch",
"coverage": "coveralls < ./coverage/lcov.info",
"prebuild": "rm -rf dist/ && npm run lint",
"build": "tsc --pretty"
},
"napa": {
"device-detector": "https://github.com/matomo-org/device-detector#3.11.4"
},
"napa-config": {
"cache": false
},
"husky": {
"hooks": {
"pre-commit": "npm run build",
"pre-push": "npm run build && npm run test"
}
},
"jest": {
"testEnvironment": "node",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/coverage/",
"/dist/",
"/typings/",
"/tests/",
"/utils/version-compare.ts"
],
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 100,
"lines": 100,
"statements": -10
}
},
"testMatch": [
"**/?(*.)(test).(tsx|ts)"
],
"collectCoverageFrom": [
"src/**/*.(tsx|ts)"
]
},
"dependencies": {
"lodash": "4.17.10",
"lru-cache": "4.1.3"
},
"devDependencies": {
"@types/jest": "22.2.3",
"@types/js-yaml": "3.11.2",
"@types/lodash": "4.14.116",
"@types/lru-cache": "4.1.1",
"@types/node": "10.9.2",
"@types/recursive-readdir": "2.2.0",
"@types/yamljs": "0.2.30",
"js-yaml": "3.12.0",
"coveralls": "3.0.2",
"husky": "0.15.0-rc.13",
"jest": "22.4.4",
"ts-jest": "22.4.6",
"tslint": "5.11.0",
"tslint-config-prettier": "1.15.0",
"tslint-eslint-rules": "4.1.1",
"typescript": "2.9.2",
"napa": "3.0.0",
"recursive-readdir": "2.2.2"
}
}