2017-01-02 02:22:45 -08:00
|
|
|
{
|
2018-01-18 07:55:50 -08:00
|
|
|
"name": "yoga-layout",
|
2024-04-09 16:13:40 -07:00
|
|
|
"version": "3.0.3",
|
2023-06-13 11:33:58 -07:00
|
|
|
"description": "An embeddable and performant flexbox layout engine with bindings for multiple languages",
|
2018-02-16 18:25:02 -08:00
|
|
|
"license": "MIT",
|
2023-06-13 11:33:58 -07:00
|
|
|
"author": "Meta Open Source",
|
2023-11-13 02:48:29 -08:00
|
|
|
"homepage": "https://yogalayout.dev/",
|
2018-01-18 07:55:50 -08:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git@github.com:facebook/yoga.git"
|
|
|
|
},
|
Consolidate JavaScript Flavors (#1433)
Summary:
Fixes https://github.com/facebook/yoga/issues/1417
This dramatically simplifies the matrix of Node vs web, ASM vs WASM, sync vs async compilation, or CommonJS vs ES Modules. We have one variant, using wasm, with ESModule top-level await to do async compilation. Web/node share the same binary, and we base64 encode the WASM into a wrapper JS file for compatibility with Node and bundlers.
This has some downsides, like requiring an environment with top level await, but also has upsides, like a consistent, sync looking API compatible with older Yoga, and mitigating TypeScript issues with package exports and typings resolution.
As part of this work I also removed `ts-node` from the toolchain (at the cost of a couple of config files needing to be vanilla JS).
Pull Request resolved: https://github.com/facebook/yoga/pull/1433
Test Plan:
1. `yarn test`
2. `yarn lint`
3. `yarn tsc`
4. `yarn benchmark`
5. `yarn build` website-next
6. `yarn lint` website-next
7. Locally test website-next
8. Examine package artifact created by GitHub
9. All Automation passes
Reviewed By: yungsters
Differential Revision: D50453324
Pulled By: NickGerleman
fbshipit-source-id: fe1192acc69e57fa69a1ff056dd7b5844d2198d5
2023-10-31 20:41:38 -07:00
|
|
|
"type": "module",
|
|
|
|
"main": "./src/index.ts",
|
2024-04-15 09:28:23 -07:00
|
|
|
"types": "./src/index.ts",
|
2024-04-08 12:04:08 -07:00
|
|
|
"exports": {
|
|
|
|
".": "./src/index.ts",
|
|
|
|
"./load": "./src/load.ts"
|
|
|
|
},
|
2022-12-28 01:27:12 -08:00
|
|
|
"files": [
|
2024-04-15 09:28:23 -07:00
|
|
|
"dist/binaries/**",
|
|
|
|
"dist/src/**",
|
2023-05-09 15:35:42 -07:00
|
|
|
"src/**"
|
2022-12-28 01:27:12 -08:00
|
|
|
],
|
2018-01-18 07:55:50 -08:00
|
|
|
"scripts": {
|
Consolidate JavaScript Flavors (#1433)
Summary:
Fixes https://github.com/facebook/yoga/issues/1417
This dramatically simplifies the matrix of Node vs web, ASM vs WASM, sync vs async compilation, or CommonJS vs ES Modules. We have one variant, using wasm, with ESModule top-level await to do async compilation. Web/node share the same binary, and we base64 encode the WASM into a wrapper JS file for compatibility with Node and bundlers.
This has some downsides, like requiring an environment with top level await, but also has upsides, like a consistent, sync looking API compatible with older Yoga, and mitigating TypeScript issues with package exports and typings resolution.
As part of this work I also removed `ts-node` from the toolchain (at the cost of a couple of config files needing to be vanilla JS).
Pull Request resolved: https://github.com/facebook/yoga/pull/1433
Test Plan:
1. `yarn test`
2. `yarn lint`
3. `yarn tsc`
4. `yarn benchmark`
5. `yarn build` website-next
6. `yarn lint` website-next
7. Locally test website-next
8. Examine package artifact created by GitHub
9. All Automation passes
Reviewed By: yungsters
Differential Revision: D50453324
Pulled By: NickGerleman
fbshipit-source-id: fe1192acc69e57fa69a1ff056dd7b5844d2198d5
2023-10-31 20:41:38 -07:00
|
|
|
"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",
|
2023-07-17 14:27:32 -07:00
|
|
|
"lint": "eslint .",
|
|
|
|
"lint:fix": "eslint . --fix",
|
Consolidate JavaScript Flavors (#1433)
Summary:
Fixes https://github.com/facebook/yoga/issues/1417
This dramatically simplifies the matrix of Node vs web, ASM vs WASM, sync vs async compilation, or CommonJS vs ES Modules. We have one variant, using wasm, with ESModule top-level await to do async compilation. Web/node share the same binary, and we base64 encode the WASM into a wrapper JS file for compatibility with Node and bundlers.
This has some downsides, like requiring an environment with top level await, but also has upsides, like a consistent, sync looking API compatible with older Yoga, and mitigating TypeScript issues with package exports and typings resolution.
As part of this work I also removed `ts-node` from the toolchain (at the cost of a couple of config files needing to be vanilla JS).
Pull Request resolved: https://github.com/facebook/yoga/pull/1433
Test Plan:
1. `yarn test`
2. `yarn lint`
3. `yarn tsc`
4. `yarn benchmark`
5. `yarn build` website-next
6. `yarn lint` website-next
7. Locally test website-next
8. Examine package artifact created by GitHub
9. All Automation passes
Reviewed By: yungsters
Differential Revision: D50453324
Pulled By: NickGerleman
fbshipit-source-id: fe1192acc69e57fa69a1ff056dd7b5844d2198d5
2023-10-31 20:41:38 -07:00
|
|
|
"prepack": "just prepack --config just.config.cjs",
|
|
|
|
"test": "just test --config just.config.cjs",
|
2023-07-17 14:27:32 -07:00
|
|
|
"tsc": "tsc --noEmit"
|
2018-01-18 07:55:50 -08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
Consolidate JavaScript Flavors (#1433)
Summary:
Fixes https://github.com/facebook/yoga/issues/1417
This dramatically simplifies the matrix of Node vs web, ASM vs WASM, sync vs async compilation, or CommonJS vs ES Modules. We have one variant, using wasm, with ESModule top-level await to do async compilation. Web/node share the same binary, and we base64 encode the WASM into a wrapper JS file for compatibility with Node and bundlers.
This has some downsides, like requiring an environment with top level await, but also has upsides, like a consistent, sync looking API compatible with older Yoga, and mitigating TypeScript issues with package exports and typings resolution.
As part of this work I also removed `ts-node` from the toolchain (at the cost of a couple of config files needing to be vanilla JS).
Pull Request resolved: https://github.com/facebook/yoga/pull/1433
Test Plan:
1. `yarn test`
2. `yarn lint`
3. `yarn tsc`
4. `yarn benchmark`
5. `yarn build` website-next
6. `yarn lint` website-next
7. Locally test website-next
8. Examine package artifact created by GitHub
9. All Automation passes
Reviewed By: yungsters
Differential Revision: D50453324
Pulled By: NickGerleman
fbshipit-source-id: fe1192acc69e57fa69a1ff056dd7b5844d2198d5
2023-10-31 20:41:38 -07:00
|
|
|
"@babel/cli": "^7.23.0",
|
|
|
|
"@babel/core": "^7.23.0",
|
|
|
|
"@babel/preset-env": "^7.23.0",
|
|
|
|
"@babel/preset-typescript": "^7.23.0",
|
2023-05-04 08:11:04 -07:00
|
|
|
"@types/glob": "^8.1.0",
|
|
|
|
"@types/jest": "^29.5.1",
|
|
|
|
"@types/node": "^16.18.25",
|
|
|
|
"@types/which": "^3.0.0",
|
2023-12-12 09:06:58 -08:00
|
|
|
"@yogalayout/cmake-bin": "3.28.0-1",
|
Consolidate JavaScript Flavors (#1433)
Summary:
Fixes https://github.com/facebook/yoga/issues/1417
This dramatically simplifies the matrix of Node vs web, ASM vs WASM, sync vs async compilation, or CommonJS vs ES Modules. We have one variant, using wasm, with ESModule top-level await to do async compilation. Web/node share the same binary, and we base64 encode the WASM into a wrapper JS file for compatibility with Node and bundlers.
This has some downsides, like requiring an environment with top level await, but also has upsides, like a consistent, sync looking API compatible with older Yoga, and mitigating TypeScript issues with package exports and typings resolution.
As part of this work I also removed `ts-node` from the toolchain (at the cost of a couple of config files needing to be vanilla JS).
Pull Request resolved: https://github.com/facebook/yoga/pull/1433
Test Plan:
1. `yarn test`
2. `yarn lint`
3. `yarn tsc`
4. `yarn benchmark`
5. `yarn build` website-next
6. `yarn lint` website-next
7. Locally test website-next
8. Examine package artifact created by GitHub
9. All Automation passes
Reviewed By: yungsters
Differential Revision: D50453324
Pulled By: NickGerleman
fbshipit-source-id: fe1192acc69e57fa69a1ff056dd7b5844d2198d5
2023-10-31 20:41:38 -07:00
|
|
|
"babel-register-esm": "^1.2.5",
|
2022-12-28 01:27:12 -08:00
|
|
|
"clang-format": "^1.8.0",
|
|
|
|
"glob": "^8.0.3",
|
|
|
|
"jest": "^29.3.1",
|
|
|
|
"just-scripts": "^2.1.0",
|
2023-12-12 09:06:58 -08:00
|
|
|
"ninja-binaries": "^1.11.1",
|
2022-12-28 01:27:12 -08:00
|
|
|
"which": "^3.0.0"
|
2018-01-18 07:55:50 -08:00
|
|
|
}
|
2017-01-02 02:22:45 -08:00
|
|
|
}
|