Summary: - Fix a few things related to how npm should publish the package (sources were in the gitignore file, so I think it would have break the build during install - I fixed this by adding a npmignore that should override the gitignore rules) - The enumerations values are now generated directly from `enums.py` - I added percent unit support (#258) to the bindings (`.setWidthPercent` is currently exposed, but I've also added a very very little parsing to also support `.setWidth("100%")` and `.setWidth(.getWidth())`), added the missing tests, and fixed Travis. Closes https://github.com/facebook/yoga/pull/314 Reviewed By: mikearmstrong001 Differential Revision: D4377198 Pulled By: emilsjolander fbshipit-source-id: 774dfafd416f5421f3be59a1d181eb7056487abe
52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"name": "yoga-layout",
|
|
"version": "1.0.0",
|
|
|
|
"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 -- 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"
|
|
|
|
}
|
|
}
|