Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
59 lines (59 loc) · 1.97 KB
/
Copy pathpackage.json
File metadata and controls
59 lines (59 loc) · 1.97 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
{
"name": "@ribajs/gamecontroller.js",
"version": "2.0.0-rc.23",
"description": "A JavaScript library that lets you handle, configure, and use gamepad and controllers on a browser, using the Gamepad API",
"main": "dist/cjs/index.js",
"browser": "dist/esm/browser.js",
"types": "dist/types/index.d.ts",
"module": "dist/esm/index.js",
"source": "src/index.ts",
"scripts": {
"build": "yarn run build:browser:dev && yarn run build:browser && yarn run build:esm && yarn run build:cjs && yarn run build:types",
"build:browser": "webpack --output-filename gamecontroller.min.js --mode production",
"build:browser:dev": "webpack --output-filename gamecontroller.js --mode development",
"build:types": "tsc --declaration true --emitDeclarationOnly --outDir dist/types",
"build:esm": "tsc --declaration false --module esnext --outDir dist/esm",
"build:cjs": "tsc --project ./tsconfig.json --declaration false --module commonjs --outDir dist/cjs",
"test": "yarn run build:cjs && jest --coverage",
"serve": "http-server . -o /examples/ -d",
"check": "tsc --noEmit"
},
"devDependencies": {
"@babel/core": "^7.28.4",
"@babel/plugin-transform-typescript": "^7.28.0",
"@babel/preset-env": "^7.28.3",
"@babel/preset-typescript": "^7.27.1",
"babel-loader": "^10.0.0",
"http-server": "^14.1.1",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"typescript": "5.9.3",
"webpack": "^5.102.1",
"webpack-cli": "^6.0.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/PixelRPG/gamecontroller.js.git"
},
"bugs": {
"url": "https://github.com/PixelRPG/gamecontroller.js/issues"
},
"homepage": "https://github.com/PixelRPG/gamecontroller.js",
"author": "Alvaro Montoro (original), PixelRPG/ribajs (fork maintainer)",
"license": "MIT",
"keywords": [
"game control",
"gamepad",
"game controller",
"game control",
"controller",
"gaming",
"web api",
"html5 api",
"gamepad api"
],
"directories": {
"example": "examples",
"test": "tests"
}
}