forked from etienne-martin/device-detector-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
113 lines (113 loc) · 2.66 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
{
"name": "@trafficguard/device-detector-js",
"version": "2.2.1-3.13.0",
"description": "A javascript port of Matomo device-detector",
"homepage": "https://github.com/TrafficGuard/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)",
"Ayan Dey <[email protected]> (https://github.com/whimsicaldreamer)"
],
"repository": {
"type": "git",
"url": "https://github.com/TrafficGuard/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": "yarn fixtures",
"fixtures": "sh load-fixtures.sh",
"lint": "tslint -c tslint.json -p tsconfig.json --fix",
"pretest": "yarn lint",
"test": "jest src --coverage --verbose",
"test:watch": "jest src --coverage --verbose --watch",
"coverage": "coveralls < ./coverage/lcov.info",
"prebuild": "rm -rf dist/ && yarn lint",
"build": "tsc --pretty"
},
"napa": {
"device-detector": "https://github.com/matomo-org/device-detector"
},
"napa-config": {
"cache": false
},
"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": {},
"devDependencies": {
"@types/jest": "22.2.3",
"@types/js-yaml": "3.11.2",
"@types/node": "10.9.2",
"@types/recursive-readdir": "2.2.0",
"@types/yamljs": "0.2.30",
"coveralls": "3.0.2",
"jest": "22.4.4",
"js-yaml": "3.13.1",
"napa": "3.0.0",
"recursive-readdir": "2.2.2",
"ts-jest": "22.4.6",
"tslint": "5.11.0",
"tslint-config-prettier": "1.15.0",
"tslint-eslint-rules": "4.1.1",
"typescript": "3.7.3"
}
}