-
Notifications
You must be signed in to change notification settings - Fork 22
/
package.json
107 lines (107 loc) · 4.01 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
{
"name": "detect-collisions",
"version": "9.24.0",
"description": "Points, Lines, Boxes, Polygons (also hollow), Ellipses, Circles. RayCasting, offsets, rotation, scaling, bounding box padding, flags for static and ghost/trigger bodies",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"start": "chef-express dist/demo --debug --port 3000",
"test": "jest --silent --verbose --forceExit",
"dev": "webpack serve --port 3000",
"amend": "npm run precommit;git commit -a --am --no-edit",
"use-latest-quickselect-macos": "sed -i '' -e \"s_'quickselect'_'./quickselect'_g\" src/external/rbush.js",
"use-latest-quickselect-linux": "sed -i -r \"s_'quickselect'_'./quickselect'_g\" src/external/rbush.js",
"use-latest-quickselect": "npm run use-latest-quickselect-macos || npm run use-latest-quickselect-linux",
"copy-rbush": "cp node_modules/rbush/index.js src/external/rbush.js",
"copy-quickselect": "cp node_modules/quickselect/index.js src/external/quickselect.js",
"copy-npm-modules": "npm run copy-rbush && npm run copy-quickselect && npm run use-latest-quickselect",
"prebuild": "rm -rf dist && npm run copy-npm-modules",
"build": "tsc",
"postbuild": "npm run test && npm run build:docs && npm run build:demo && ./clean-dist.sh && npm run benchmark",
"build:docs": "typedoc --customCss typedoc.css",
"postbuild:docs": "npm run docs-from-master || echo ok",
"build:demo": "webpack",
"postbuild:demo": "cp -r dist/demo docs",
"prebuild:docs": "rm -rf docs",
"docs": "npm run build:docs && chef-express docs --debug --port 3000",
"docs-from-master-macos": "find docs -type f -name '*.html' -exec sed -i '' -r 's_/blob/[^/]+/_/blob/master/_g' {} +",
"docs-from-master-linux": "find docs -type f -name '*.html' -exec sed -i -r 's_/blob/[^/]+/_/blob/master/_g' {} +",
"docs-from-master": "npm run docs-from-master-macos || npm run docs-from-master-linux",
"demo": "npm run build:demo && npm start",
"precommit": "npm run lint && npm run build",
"lint": "eslint src --fix",
"benchmark": "npm run benchmark-insertion && npm run benchmark-stress",
"benchmark-stress": "node -e 'import(\"./dist/benchmarks/index.js\").then(({ stressBenchmark }) => stressBenchmark());'",
"benchmark-insertion": "node -e 'import(\"./dist/benchmarks/index.js\").then(({ insertionBenchmark }) => insertionBenchmark());'"
},
"repository": "git://github.com/Prozi/detect-collisions.git",
"files": [
"dist/*.*",
"dist/bodies/*.*",
"dist/external/*.*"
],
"keywords": [
"javascript",
"typescript",
"library",
"computational-geometry",
"alghoritm",
"computational-geometry-alghoritm",
"collisions",
"collision-checking",
"concave",
"rotation",
"angle",
"separating-axis-theorem",
"bounding-volume-hierarchy",
"Circle",
"Polygon",
"Box",
"Ellipse",
"Line",
"Point"
],
"author": "Jacek Pietal",
"license": "MIT",
"bugs": {
"url": "https://github.com/Prozi/detect-collisions/issues"
},
"homepage": "https://prozi.github.io/detect-collisions/",
"dependencies": {
"@types/sat": "^0.0.35",
"poly-decomp-es": "^0.4.2",
"sat": "^0.9.0"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.10.1",
"@types/node": "^22.9.0",
"@types/rbush": "^4.0.0",
"chef-express": "^2.4.2",
"eslint": "^9.14.0",
"eslint-plugin-json": "^4.0.1",
"html-webpack-plugin": "^5.6.3",
"husky": "^9.1.6",
"jest": "^29.7.0",
"quickselect": "^3.0.0",
"random-seed": "^0.3.0",
"rbush": "^4.0.1",
"tinybench": "^3.0.3",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"typedoc": "^0.26.11",
"typescript": "^5",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0"
},
"resolutions": {
"@types/node": "^22.4.1",
"canvas": "^2.11.2",
"minimist": "^1.2.6",
"terser": "^5.14.2",
"json5": "^2.2.2",
"semver": "^7.5.3",
"escodegen": "^2.1.0",
"express": "^4.19.2"
}
}