migrate to emscripten
This commit is contained in:
@@ -7,34 +7,16 @@
|
||||
"type": "git",
|
||||
"url": "git@github.com:facebook/yoga.git"
|
||||
},
|
||||
"main": "./dist/entry-node",
|
||||
"browser": "./dist/entry-browser",
|
||||
"config": {
|
||||
"platform": "all"
|
||||
},
|
||||
"main": "./dist/index",
|
||||
"scripts": {
|
||||
"which": "which",
|
||||
"autogypi": "autogypi",
|
||||
"node-gyp": "node-gyp",
|
||||
"emcc-path": "emcc-path",
|
||||
"is-monolithic": "test \"$(basename \"$(pwd)\")\" = javascript",
|
||||
"copy-sources": "! npm -s run is-monolithic || (rsync -r --checksum --delete ../yoga/ sources/yoga/)",
|
||||
"build:node": "npm run copy-sources && autogypi && node-gyp configure build",
|
||||
"build:browser": "npm run copy-sources && autogypi && node-gyp configure build --asmjs=1",
|
||||
"build:all": "npm run build:node && npm run build:browser",
|
||||
"build": "cross-env \"npm --if-present run build:$npm_package_config_platform\"",
|
||||
"test:node": "TEST_ENTRY=node time mocha --compilers js:babel-core/register --expose-gc -r tests/tools.js tests/Facebook.Yoga/**/*.js",
|
||||
"test:browser": "TEST_ENTRY=browser time mocha --compilers js:babel-core/register --expose-gc -r tests/tools.js tests/Facebook.Yoga/**/*.js",
|
||||
"test": "npm run test:node && npm run test:browser",
|
||||
"benchmark": "npm run prepublish && node tests/run-bench $(find tests/Benchmarks -name '*.js')",
|
||||
"install": "npm run build:node",
|
||||
"prepublish": "npm run copy-sources && babel sources --out-dir dist && flow-copy-source sources dist"
|
||||
},
|
||||
"dependencies": {
|
||||
"autogypi": "^0.2.2",
|
||||
"nbind": "^0.3.14",
|
||||
"node-gyp": "^3.6.2"
|
||||
"build": "npm run copy-sources && make && npm run build:js",
|
||||
"test": "time mocha --expose-gc -r tests/tools.js tests/Facebook.Yoga/**/*.js",
|
||||
"benchmark": "npm run build && node tests/run-bench $(find tests/Benchmarks -name '*.js')",
|
||||
"build:js": "babel sources --out-dir dist && flow-copy-source sources dist"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.24.1",
|
||||
"babel-core": "^6.25.0",
|
||||
|
Reference in New Issue
Block a user