-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
package.json
61 lines (61 loc) · 2.22 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
{
"name": "joy-con-webhid",
"version": "0.7.0",
"description": "Joy-Con over WebHID ",
"scripts": {
"start": "npx http-server",
"clean": "shx rm -rf ./dist && mkdir dist",
"lint": "npx eslint . --ext .js,.mjs --fix --ignore-pattern dist/ --ignore-pattern src/madgwick.js",
"build:index": "npx terser ./src/index.js --toplevel --comments /@license/ --ecma=8 -o ./dist/index.js",
"build:joycon": "npx terser ./src/joycon.js --toplevel --comments /@license/ --ecma=8 -o ./dist/joycon.js",
"build:parse": "npx terser ./src/parse.js --toplevel --comments /@license/ --ecma=8 -o ./dist/parse.js",
"build:madgwick": "npx terser ./src/madgwick.js --toplevel --comments /@license/ --ecma=8 -o ./dist/madgwick.js",
"build:connectRingCon": "npx terser ./src/connectRingCon.js --toplevel --comments /@license/ --ecma=8 -o ./dist/connectRingCon.js",
"build": "npm run clean && npm run build:index && npm run build:joycon && npm run build:parse && npm run build:madgwick && npm run build:connectRingCon",
"copyDeps": "shx cp ./node_modules/ahrs/Madgwick.js ./src/madgwick.js && shx sed -i 's/module.exports =/export/' ./src/madgwick.js",
"prepare": "npm run lint && npm run fix && npm run build && npm run copyDeps",
"fix": "npx prettier --write ."
},
"main": "./dist/index.js",
"browser": "./dist/index.js",
"exports": "./dist/index.js",
"module": "./dist/index.js",
"unpkg": "./dist/index.js",
"files": [
"demo",
"src",
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/tomayac/joy-con-webhid.git"
},
"author": "Thomas Steiner (tomac@google.com)",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/tomayac/joy-con-webhid/issues"
},
"homepage": "https://github.com/tomayac/joy-con-webhid#readme",
"devDependencies": {
"eslint": "^8.47.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^9.0.0",
"http-server": "^14.1.1",
"prettier": "^3.0.2",
"shx": "^0.3.4",
"terser": "^5.19.2"
},
"eslintConfig": {
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": [
"google",
"prettier"
]
},
"dependencies": {
"ahrs": "^1.3.2"
}
}