2017-01-02 02:22:45 -08:00
{
"name" : "yoga-layout" ,
2017-12-07 18:58:53 -08:00
"version" : "1.8.0" ,
2017-01-28 11:06:17 -08:00
"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" : {
2017-07-10 11:52:23 -07:00
"type" : "git" ,
"url" : "git@github.com:facebook/yoga.git"
2017-01-28 11:06:17 -08:00
} ,
2017-01-02 02:22:45 -08:00
"main" : "./sources/entry-node" ,
"browser" : "./sources/entry-browser" ,
2017-05-16 10:43:46 -07:00
"config" : {
"platform" : "all"
} ,
2017-01-02 02:22:45 -08:00
"scripts" : {
"which" : "which" ,
"autogypi" : "autogypi" ,
"node-gyp" : "node-gyp" ,
"emcc-path" : "emcc-path" ,
"is-monolithic" : "test \"$(basename \"$(pwd)\")\" = javascript" ,
2017-01-30 06:15:18 -08:00
"copy-sources" : "! npm -s -- run is-monolithic || (rsync -r --checksum --delete ../yoga/ sources/yoga/)" ,
2017-01-02 02:22:45 -08:00
"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" ,
2017-07-10 11:52:23 -07:00
"postbuild:browser" : "babel build/Release/nbind.js --out-file build/Release/nbind.js" ,
2017-01-02 02:22:45 -08:00
"build:standalone" : "webpack" ,
"build:all" : "npm -- run build:node && npm -- run build:browser && npm -- run build:standalone" ,
2017-05-16 10:43:46 -07:00
"build" : "cross-env \"npm --if-present -- run build:$npm_package_config_platform\"" ,
2017-01-02 02:22:45 -08:00
"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')" ,
2017-01-04 04:33:39 -08:00
"install" : "npm -- run autogypi && npm -- run build:node" ,
"prepare" : "npm -- run build:browser"
2017-01-02 02:22:45 -08:00
} ,
"dependencies" : {
"autogypi" : "^0.2.2" ,
"nbind" : "^0.3.8" ,
"node-gyp" : "^3.4.0"
} ,
"devDependencies" : {
2017-07-10 11:52:23 -07:00
"babel-cli" : "^6.24.1" ,
"babel-core" : "^6.25.0" ,
"babel-plugin-replace-require" : "^0.0.4" ,
2017-05-16 10:43:46 -07:00
"cross-env" : "^4.0.0" ,
2017-01-02 02:22:45 -08:00
"mocha" : "^3.2.0" ,
"webpack" : "^2.2.0-rc.2"
}
}