-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
35 lines (35 loc) · 1.35 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
{
"name": "ammojs3",
"version": "0.0.11",
"description": "Direct port of the Bullet physics engine to JavaScript using Emscripten",
"main": "dist/ammo.js",
"types": "dist/ammo.d.ts",
"repository": {
"type": "git",
"url": "git://github.com/i12345/ammo.js.git"
},
"author": "Alon Zakai <alonzakai@gmail.com>",
"bugs": {
"url": "https://github.com/i12345/ammo.js/issues"
},
"homepage": "https://github.com/i2135/ammo.js",
"devDependencies": {
"ava": "^5.1.0",
"http-server": "^14.1.1",
"webidl2ts": "github:anotherpit/webidl2ts"
},
"scripts": {
"build": "npm run build:full",
"build:full": "npm run build:clean && npm run build:partial",
"build:partial": "npm run build:js+wasm && npm run build:export",
"build:clean": "rm -rf dist && rm -rf builds",
"build:js+wasm": "cmake -B builds -DCLOSURE=1 && cmake --build builds",
"build:export": "npm run generate && mkdir -p dist && cp builds/ammo* dist/",
"test": "npm run test-js && npm run test-wasm",
"test-js": "AMMO_PATH=builds/ammo.js ava",
"test-wasm": "AMMO_PATH=builds/ammo.wasm.js ava",
"generate": "npm run generate:module && npm run generate:ambient",
"generate:module": "webidl2ts -i ./ammo.idl -n Ammo -ed -o ./builds/ammo.d.ts",
"generate:ambient": "webidl2ts -i ./ammo.idl -n Ammo -e -o ./builds/ammo-ambient.d.ts"
}
}