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

Commit

Permalink
Tries to compile browser.js if possible; useful for using the git rep…
Browse files Browse the repository at this point in the history
…o as dependency
  • Loading branch information
arcanis committed Jan 18, 2017
1 parent 82d34a7 commit 95d7918
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"main": "./index",
"browser": "./browser",
"scripts": {
"build:node": "node-gyp configure build",
"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",
"build:browser:maybe": "test -f browser.js || test -n \"$CI\" || ! command -v em++ 2>&1 > /dev/null || npm run build:browser",
"build:all": "npm run build:node && npm run build:browser",
"install": "npm run build:node && npm run maybe:build:browser",
"test-native": "script/test-native.js",
"test": "mocha test/js/*.js",
"benchmark": "node benchmark/marker-index.benchmark.js",
Expand Down

0 comments on commit 95d7918

Please sign in to comment.