-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
56 lines (56 loc) · 3.13 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
{
"name": "box2d-native",
"version": "0.0.8",
"description": "Box2D as native addon",
"repository": {
"type": "git",
"url": "https://github.com/zuker/box2d-native"
},
"main": "Box2D.js",
"engines": {
"node": ">=4.2.1"
},
"config": {
"box2d_url": "https://codeload.github.com/erincatto/Box2D/tar.gz/v2.3.1",
"swig_url": "http://prdownloads.sourceforge.net/swig/swig-3.0.7.tar.gz",
"box2d_arch_name": "Box2D-2.3.1.tar.gz",
"swig_arch_name": "swig-3.0.7.tar.gz",
"swig_dir": "swig-3.0.7",
"box2d_dir": "Box2D-2.3.1/Box2D",
"box2d_cmake_lists_path": "Box2D-2.3.1/Box2D/Box2D/CMakeLists.txt"
},
"scripts": {
"get:Box2D": "curl -O -J $npm_package_config_box2d_url",
"get:swig": "curl -O -L $npm_package_config_swig_url",
"get": "npm run get:Box2D && npm run get:swig",
"untar:Box2D": "tar -zxvf $npm_package_config_box2d_arch_name",
"untar:swig": "tar -zxvf $npm_package_config_swig_arch_name",
"untar": "npm run untar:Box2D && npm run untar:swig",
"make:swig": "cd $npm_package_config_swig_dir && \\\n./configure \\\n--without-tcl \\\n--without-python \\\n--without-python3 \\\n--without-perl5 \\\n--without-octave \\\n--without-scilab \\\n--without-java \\\n--without-gcj \\\n--without-android \\\n--without-guile \\\n--without-mzscheme \\\n--without-ruby \\\n--without-php \\\n--without-ocaml \\\n--without-pike \\\n--without-chicken \\\n--without-csharp \\\n--without-lua \\\n--without-allegrocl \\\n--without-clisp \\\n--without-r \\\n--without-go \\\n--without-d &&\\\nmake",
"patch": "patch $npm_package_config_box2d_cmake_lists_path patch.txt",
"make:Box2D": "cd $npm_package_config_box2d_dir && cmake -DBOX2D_BUILD_SHARED=OFF -DBOX2D_BUILD_EXAMPLES=OFF -DBOX2D_BUILD_STATIC=ON -DBOX2D_INSTALL=OFF -DBOX2D_INSTALL_DOC=OFF && make",
"make": "npm run make:swig && npm run make:Box2D",
"wrap": "cd $npm_package_config_box2d_dir && SWIG_LIB=../../$npm_package_config_swig_dir/Lib ../../$npm_package_config_swig_dir/swig -c++ -javascript -node -O -ignoremissing -includeall -DV8_VERSION=`node -e \"console.log('0x0' + process.versions.v8.replace(/\\./g, ''))\"` ../../Box2D.i",
"clean:Box2D": "rm -rf Box2D-2.3.1 && rm -rf $npm_package_config_box2d_arch_name",
"clean:swig": "rm -rf $npm_package_config_swig_dir && rm -rf $npm_package_config_swig_arch_name",
"clean": "npm run clean:Box2D && npm run clean:swig && rm -rf Box2D_wrap.cxx",
"preinstall": "npm run clean && npm run get && npm run untar && npm run patch && npm run make && npm run wrap",
"install": "node-gyp configure && node-gyp build",
"prepublish": "node node_modules/.bin/babel Box2D.es6 --out-file Box2D.js --source-maps --whitelist strict,es6.modules,es6.parameters,es6.spread,es6.destructuring",
"postinstall": "npm run clean",
"test": "node node_modules/.bin/mocha -r tests/bootstrap.js tests/**/*.spec.js"
},
"contributors": [
"Leonid Kuzmin <[email protected]> (https://github.com/zuker)"
],
"license": "MIT",
"dependencies": {
"babel": "^5.8.29",
"bindings": "^1.2.1",
"lodash": "^3.10.1"
},
"devDependencies": {
"mocha": "^2.3.3",
"should": "^7.1.1"
}
}