Summary: Being a environment test, `npm run is-monolithic` is expected to fail when pulling the package from npm and to succeed when pulling it from github. Unfortunately, when returning false, npm will throw a tantrum by default if not explicitely disabled. It's not a hard failure, the build still complete, but it's better this way. Closes https://github.com/facebook/yoga/pull/362 Reviewed By: gkassabli Differential Revision: D4480608 Pulled By: emilsjolander fbshipit-source-id: 0832a2158647f49b5230e2f658997f94774cec5b
58 lines
1.9 KiB
JSON
58 lines
1.9 KiB
JSON
{
|
|
"name": "yoga-layout",
|
|
"version": "1.0.1",
|
|
"description": "Yoga is a cross-platform layout engine enabling maximum collaboration within your team by implementing an API many designers are familiar with, and opening it up to developers across different platforms.",
|
|
"license": "BSD-3-Clause",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:facebook/yoga.git"
|
|
},
|
|
|
|
"main": "./sources/entry-node",
|
|
"browser": "./sources/entry-browser",
|
|
|
|
"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 && npm -- run node-gyp configure build",
|
|
"build:browser": "npm -- run copy-sources && npm -- run node-gyp configure build --asmjs=1",
|
|
"build:standalone": "webpack",
|
|
"build:all": "npm -- run build:node && npm -- run build:browser && npm -- run build:standalone",
|
|
"build": "npm -- run build:all",
|
|
|
|
"test:node": "TEST_ENTRY=node time mocha --expose-gc -r tests/tools.js tests/Facebook.Yoga/**/*.js",
|
|
"test:browser": "TEST_ENTRY=browser time mocha --expose-gc -r tests/tools.js tests/Facebook.Yoga/**/*.js",
|
|
"test:all": "npm -- run test:node && npm -- run test:browser",
|
|
"test": "npm -- run test:all",
|
|
|
|
"bench": "node tests/run-bench $(find tests/Benchmarks -name '*.js')",
|
|
|
|
"install": "npm -- run autogypi && npm -- run build:node",
|
|
|
|
"prepare": "npm -- run build:browser"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"autogypi": "^0.2.2",
|
|
"nbind": "^0.3.8",
|
|
"node-gyp": "^3.4.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"mocha": "^3.2.0",
|
|
"webpack": "^2.2.0-rc.2"
|
|
|
|
}
|
|
}
|