-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
141 lines (141 loc) · 4.69 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"name": "@brianchirls/game-input",
"version": "0.1.1",
"description": "",
"repository": {
"type": "git",
"url": "https://github.com/brianchirls/game-input"
},
"bugs": {
"url": "https://github.com/brianchirls/game-input/issues"
},
"homepage": "https://github.com/brianchirls/game-input#readme",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"browser": "dist/esm/browser.js",
"unpkg": "dist/browser.js",
"types": "./dist/types/browser.d.ts",
"exports": {
".": {
"node": "./dist/cjs/index.js",
"require": "./dist/cjs/browser.js",
"import": "./dist/esm/browser.js",
"default": "./dist/esm/browser.js",
"types": "./dist/types/browser.d.ts"
},
"./*": {
"types": "./dist/types/*.d.ts",
"import": "./dist/esm/*.js",
"require": "./dist/cjs/*.js",
"default": "./dist/cjs/*.js"
}
},
"typesVersions": {
"*": {
"*": [
"./dist/types/*"
]
}
},
"files": [
"dist/*"
],
"keywords": [
"game",
"input",
"joystick",
"gamepad",
"mouse",
"keyboard"
],
"scripts": {
"lint": "npm run lint:js; npm run lint:css",
"lint:js": "eslint ./; true",
"lint:css": "stylelint 'examples/**/*.css' 'tools/**/*.css'; true",
"lint:fix": "eslint --fix ./; stylelint 'examples/**/*.css' 'tools/**/*.css' --fix; true",
"prepush": "npm test",
"start": "cross-env NODE_ENV=development webpack serve --config ./config/webpack-dev.js --mode development --progress",
"build:cjs": "rm -rf dist/cjs/ && tsc --target ES6 --module commonjs --outDir ./dist/cjs --allowJs",
"build:esm": "rm -rf dist/esm/ && tsc --target ES6 --module ES6 --outDir ./dist/esm --allowJs",
"build:bundle": "rm -rf dist/types/ && webpack --config ./config/webpack.lib.js",
"build:lib": "npm run build:cjs && npm run build:esm && npm run build:bundle",
"build:site:dev": "cross-env NODE_ENV=development rm -rf build/ && webpack --config ./config/webpack-dev.js --mode development",
"build:site": "cross-env NODE_ENV=production rm -rf build/ && webpack --config ./config/webpack-prod.js --mode production",
"build": "npm run build:lib && npm run build:site",
"deploy": "gh-pages -d ./build",
"check-types": "tsc --noEmit",
"test": "cross-env NODE_ENV=test jest --verbose --coverage && npx package-check",
"test:debug": "cross-env NODE_ENV=test node --inspect node_modules/.bin/jest --runInBand",
"test:watch:debug": "cross-env NODE_ENV=test node --inspect node_modules/.bin/jest --runInBand --watch",
"test:watch": "cross-env NODE_ENV=test jest --watch"
},
"author": "Brian Chirls <brian@chirls.com>",
"license": "MIT",
"dependencies": {
"mitt": "^3.0.0"
},
"devDependencies": {
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/eslint-plugin": "^7.16.5",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-object-assign": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/plugin-transform-typescript": "^7.16.8",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.12.11",
"@babel/preset-typescript": "^7.16.5",
"@skypack/package-check": "^0.2.2",
"@types/jest": "^29.2.3",
"@types/webpack-env": "^1.16.3",
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.8.1",
"autoprefixer": "^10.2.5",
"babel-eslint": "^10.1.0",
"babel-loader": "^9.1.0",
"babel-plugin-module-resolver": "^4.1.0",
"case-sensitive-paths-webpack-plugin": "^2.3.0",
"clean-webpack-plugin": "^4.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.2.0",
"css-minimizer-webpack-plugin": "^4.0.0",
"eslint": "^8.5.0",
"eslint-config-crockford": "^2.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^27.1.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-webpack-plugin": "^3.1.1",
"file-loader": "^6.2.0",
"gh-pages": "^4.0.0",
"html-loader": "^4.1.0",
"html-webpack-plugin": "^5.3.1",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-matcher-deep-close-to": "^3.0.2",
"jest-runner-eslint": "^1.0.0",
"mini-css-extract-plugin": "^2.4.5",
"postcss": "^8.2.2",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-input-range": "^5.0.0",
"postcss-loader": "^7.0.1",
"purecss": "^3.0.0",
"raw-loader": "^4.0.2",
"react-dev-utils": "^12.0.0",
"stylelint": "^14.2.0",
"stylelint-config-standard": "^29.0.0",
"stylelint-webpack-plugin": "^3.1.0",
"svgo": "^3.0.2",
"svgo-loader": "^3.0.0",
"ts-loader": "^9.2.8",
"typescript": "^4.5.4",
"url-loader": "^4.1.1",
"webpack": "^5.28.0",
"webpack-bundle-analyzer": "^4.4.0",
"webpack-cli": "^5.0.0",
"webpack-dev-server": "^4.7.1",
"webpack-merge": "^5.7.3"
}
}