Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1506 In order to build the website, you must build a Yoga binary. This usually requires installing native toolchains. We have warning messages for these right now, but an even better solution is to just manage the dependencies ourselves. This does that, bringing in specific CMake and Ninja binaries from NPM, and caching a local copy of Emscripten during the build. A downside is that the CMake packages are chunky, so we add 130MB to node_modules (for a repo total around 350MB). This also delays acquiring Emscripten (which is even chunkier) in CI builds until it is needed, and I added some caching for it as well. The upside of JS users being able to run and test (inc the website) without installing and managing their own versions of toolchains is a real time-saver though, and is probably worth it. allow-large-files Reviewed By: yungsters Differential Revision: D52013026 fbshipit-source-id: 3d307f751463a21c5e5d5b98b8e9e63db9d3d52e
49 lines
1.4 KiB
JSON
49 lines
1.4 KiB
JSON
{
|
|
"name": "yoga-layout",
|
|
"version": "0.0.0",
|
|
"description": "An embeddable and performant flexbox layout engine with bindings for multiple languages",
|
|
"license": "MIT",
|
|
"author": "Meta Open Source",
|
|
"homepage": "https://yogalayout.dev/",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:facebook/yoga.git"
|
|
},
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"files": [
|
|
"binaries/**",
|
|
"src/**"
|
|
],
|
|
"scripts": {
|
|
"benchmark": "just benchmark --config just.config.cjs",
|
|
"build": "just build --config just.config.cjs",
|
|
"clang-format": "just clang-format --config just.config.cjs",
|
|
"clang-format:fix": "just clang-format --fix --config just.config.cjs",
|
|
"clean": "just clean --config just.config.cjs",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"prepack": "just prepack --config just.config.cjs",
|
|
"test": "just test --config just.config.cjs",
|
|
"tsc": "tsc --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.23.0",
|
|
"@babel/core": "^7.23.0",
|
|
"@babel/preset-env": "^7.23.0",
|
|
"@babel/preset-typescript": "^7.23.0",
|
|
"@types/glob": "^8.1.0",
|
|
"@types/jest": "^29.5.1",
|
|
"@types/node": "^16.18.25",
|
|
"@types/which": "^3.0.0",
|
|
"@yogalayout/cmake-bin": "3.28.0-1",
|
|
"babel-register-esm": "^1.2.5",
|
|
"clang-format": "^1.8.0",
|
|
"glob": "^8.0.3",
|
|
"jest": "^29.3.1",
|
|
"just-scripts": "^2.1.0",
|
|
"ninja-binaries": "^1.11.1",
|
|
"which": "^3.0.0"
|
|
}
|
|
}
|