-
Notifications
You must be signed in to change notification settings - Fork 241
/
package.json
93 lines (93 loc) · 2.87 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
{
"name": "planck",
"version": "1.1.0",
"description": "2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development",
"homepage": "https://github.com/piqnt/planck.js",
"keywords": [
"box2d",
"html5",
"javascript",
"typescript",
"game",
"physics",
"engine",
"2d",
"mobile"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/piqnt/planck.js.git"
},
"author": "Ali Shakiba",
"contributors": [
"Erin Catto",
"Ali Shakiba",
"Oliver Zell"
],
"type": "commonjs",
"sideEffects": [
"./dist/planck-with-testbed.*"
],
"module": "dist/planck.mjs",
"main": "dist/planck.js",
"jsdelivr": "dist/planck.min.js",
"unpkg": "dist/planck.min.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./dist/planck.d.ts",
"import": "./dist/planck.mjs",
"default": "./dist/planck.js"
},
"./with-testbed": {
"types": "./dist/planck-with-testbed.d.ts",
"import": "./dist/planck-with-testbed.mjs",
"default": "./dist/planck-with-testbed.js"
},
"./dist/*": "./dist/*"
},
"engines": {
"node": ">=14.0"
},
"peerDependencies": {
"stage-js": "^1.0.0-alpha.5"
},
"devDependencies": {
"@types/chai": "^4.3.5",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"@vitest/coverage-v8": "^2.1.5",
"ajv": "^6.10.2",
"eslint": "^8.1.0",
"replace-in-files-cli": "^3.0.0",
"rimraf": "^6.0.1",
"rollup-plugin-license": "^3.5.3",
"sinon": "^15.2.0",
"terser": "^5.36.0",
"tsd": "^0.31.2",
"typedoc": "^0.26.11",
"typedoc-plugin-markdown": "^4.2.10",
"vite": "^5.4.11",
"vite-plugin-dts-bundle-generator": "^2.0.5",
"vite-plugin-typescript": "^1.0.4",
"vite-plugin-typescript-transform": "^1.3.1",
"vitest": "^2.1.5"
},
"scripts": {
"lint": "eslint './src/**/*.ts' './testbed/**/*.ts'",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:types": "tsd --typings=./dist/planck.d.ts && tsd --typings=./dist/planck-with-testbed.d.ts",
"preflight": "npm run lint && npm run test:types && npm run test",
"testbed": "npm run dev",
"dev": "vite",
"build": "rimraf ./dist/* && vite build && BUILD_TESTBED=true vite build && npm run terser-core && npm run terser-testbed",
"terser-core": "terser ./dist/planck.js -o ./dist/planck.min.js --source-map",
"terser-testbed": "terser ./dist/planck-with-testbed.js -o ./dist/planck-with-testbed.min.js --source-map",
"watch": "vite build --watch",
"preview": "vite preview",
"benchmark": "git log -n 1 && vite-node ./benchmark/node",
"typedoc": "typedoc --options typedoc.json && mv ./docs/pages/api/README.md ./docs/pages/api/index.md && ./node_modules/.bin/replace-in-files ./docs/pages/api/* --string '.md' --replacement ''"
}
}