1 | {
|
2 | "name": "detect-gpu",
|
3 | "version": "3.1.5",
|
4 | "description": "Classify GPU's based on their benchmark score in order to provide an adaptive experience.",
|
5 | "author": "Tim van Scherpenzeel",
|
6 | "license": "MIT",
|
7 | "main": "dist/detect-gpu.umd.js",
|
8 | "module": "dist/detect-gpu.esm.js",
|
9 | "types": "dist/src/index.d.ts",
|
10 | "homepage": "https://github.com/pmndrs/detect-gpu#readme",
|
11 | "bugs": {
|
12 | "url": "https://github.com/pmndrs/detect-gpu/issues"
|
13 | },
|
14 | "repository": {
|
15 | "type": "git",
|
16 | "url": "https://github.com/pmndrs/detect-gpu.git"
|
17 | },
|
18 | "files": [
|
19 | "dist"
|
20 | ],
|
21 | "keywords": [
|
22 | "gpu",
|
23 | "detect",
|
24 | "webgl",
|
25 | "webgl2",
|
26 | "three.js",
|
27 | "babylonjs",
|
28 | "three",
|
29 | "babylon",
|
30 | "3d",
|
31 | "typescript",
|
32 | "javascript"
|
33 | ],
|
34 | "scripts": {
|
35 | "start": "rollup -c rollup/config.lib.js -w",
|
36 | "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\" \"test/**/*.test.ts\" \"rollup/**/*.ts\" \"scripts/**/*.ts\" \"scripts/**/*.js\" --fix --cache --cache-location ~/.eslintcache/eslintcache",
|
37 | "test": "jest --verbose=false",
|
38 | "test:watch": "jest --watch",
|
39 | "test:coverage": "jest --coverage",
|
40 | "test:debug": "node --inspect-brk ./node_modules/jest/bin/jest --runInBand --no-cache --watch",
|
41 | "prebuild": "rimraf dist",
|
42 | "build": "rollup -c rollup/config.lib.js",
|
43 | "example": "rollup -w -c rollup/config.dev.ts",
|
44 | "parse-analytics": "node ./scripts/analytics_parser.js",
|
45 | "update-benchmarks": "rimraf benchmarks && mkdir -p benchmarks && ts-node -O '{\"module\":\"commonjs\"}' ./scripts/update_benchmarks.ts && tar -czvf benchmarks.tar.gz benchmarks/*.json"
|
46 | },
|
47 | "dependencies": {
|
48 | "webgl-constants": "^1.1.1"
|
49 | },
|
50 | "devDependencies": {
|
51 | "@rollup/plugin-json": "^4.1.0",
|
52 | "@rollup/plugin-node-resolve": "^13.0.0",
|
53 | "@types/jest": "^26.0.23",
|
54 | "@types/node-fetch": "^2.5.10",
|
55 | "@types/puppeteer": "^5.4.3",
|
56 | "@typescript-eslint/eslint-plugin": "^4.26.0",
|
57 | "@typescript-eslint/parser": "^4.26.0",
|
58 | "csvtojson": "^2.0.10",
|
59 | "eslint": "^7.28.0",
|
60 | "eslint-config-prettier": "^8.3.0",
|
61 | "eslint-plugin-prettier": "^3.4.0",
|
62 | "jest": "^27.0.4",
|
63 | "moment": "^2.29.1",
|
64 | "prettier": "^2.3.1",
|
65 | "puppeteer": "^10.0.0",
|
66 | "rimraf": "^3.0.2",
|
67 | "rollup": "^2.51.0",
|
68 | "rollup-plugin-commonjs": "^10.1.0",
|
69 | "rollup-plugin-copy": "^3.4.0",
|
70 | "rollup-plugin-filesize": "^9.1.1",
|
71 | "rollup-plugin-livereload": "^2.0.0",
|
72 | "rollup-plugin-serve": "^1.1.0",
|
73 | "rollup-plugin-sourcemaps": "^0.6.3",
|
74 | "rollup-plugin-terser": "^7.0.2",
|
75 | "rollup-plugin-typescript2": "^0.30.0",
|
76 | "ts-jest": "^27.0.2",
|
77 | "ts-node": "^10.0.0",
|
78 | "typescript": "^4.3.2"
|
79 | },
|
80 | "jest": {
|
81 | "testURL": "http://localhost",
|
82 | "moduleFileExtensions": [
|
83 | "js",
|
84 | "ts"
|
85 | ],
|
86 | "globals": {
|
87 | "ts-jest": {
|
88 | "tsConfig": "tsconfig.json"
|
89 | }
|
90 | },
|
91 | "testMatch": [
|
92 | "**/test/**/*.test.ts"
|
93 | ],
|
94 | "testPathIgnorePatterns": [
|
95 | "<rootDir>/test/data.ts"
|
96 | ],
|
97 | "preset": "ts-jest"
|
98 | }
|
99 | }
|