Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 68c5d2c

Browse files
committed
Tries to compile browser.js if possible; useful for using the git repo as dependency
1 parent 82d34a7 commit 68c5d2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"main": "./index",
66
"browser": "./browser",
77
"scripts": {
8+
"build:node": "node-gyp configure build",
89
"build:browser": "em++ --bind -o browser.js -O3 -std=c++14 -I src/bindings/em -I src/core -include iostream src/core/*.cc src/bindings/em/*.cc -s TOTAL_MEMORY=134217728 --memory-init-file 0",
10+
"build:browser:maybe": "test -f browser.js || test -n \"$CI\" || ! command -v em++ 2>&1 > /dev/null || npm run build:browser",
11+
"build:all": "npm run build:node && npm run build:browser",
12+
"install": "npm run build:node && npm run build:browser:maybe",
913
"test-native": "script/test-native.js",
1014
"test": "mocha test/js/*.js",
1115
"benchmark": "node benchmark/marker-index.benchmark.js",

0 commit comments

Comments
 (0)