mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
915a0b8389
--- No changes to snap or sprout's functionality. Tweaks to consolidate sprout into snap while keeping its simple interface and most developer patterns. - to keep `filter` mode fast, we do not run sprout in filter mode - sprout is run in non-filter mode for both test and update ~~Small qol improvement: `--watch` will start you in `filter` mode~~ ### Cost of this change `performance.now()` is quite noisy due to background processes and ThreadPool logic (especially with asymmetric task distribution), so I used `process.cpuUsage` which reports time spent in user-space. This was much less noisy (1-4% standard dev / mean) Running all tests becomes slower by ~50%. Initial runs are slower because they load in Forget's `require` chains. - 23.9s previous initial run - 34.6s current initial run - 11.5s previous subsequent runs - 15.4s current subsequent runs Running filtered tests remains very fast (~100ms on the average case) --- Additional modes or commands could be added as needed (e.g. run tests in filter mode, with sprout output)
76 lines
2.4 KiB
JSON
76 lines
2.4 KiB
JSON
{
|
|
"name": "babel-plugin-react-forget",
|
|
"version": "0.0.1",
|
|
"description": "Babel plugin for React Forget.",
|
|
"main": "dist/index.js",
|
|
"license": "MIT",
|
|
"files": [
|
|
"src"
|
|
],
|
|
"scripts": {
|
|
"build": "rimraf dist && rollup --config --bundleConfigAsCjs",
|
|
"test": "yarn snap:ci",
|
|
"jest": "tsc && ts-node \"$(yarn --silent which jest)\"",
|
|
"snap": "node ../snap/dist/main.js",
|
|
"snap:build": "yarn workspace snap run build",
|
|
"snap:ci": "yarn snap:build && yarn snap",
|
|
"ts:analyze-trace": "scripts/ts-analyze-trace.sh",
|
|
"prettier": "node ./scripts/prettier.js write-changed",
|
|
"prettier:all": "node ./scripts/prettier.js write",
|
|
"prettier:ci": "prettier --check .",
|
|
"lint": "yarn eslint src"
|
|
},
|
|
"dependencies": {
|
|
"@babel/generator": "7.2.0",
|
|
"@babel/types": "^7.19.0",
|
|
"chalk": "4",
|
|
"invariant": "^2.2.4",
|
|
"pretty-format": "^24",
|
|
"zod": "^3.22.4",
|
|
"zod-validation-error": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.2.0",
|
|
"@babel/parser": "^7.2.0",
|
|
"@babel/plugin-syntax-typescript": "^7.18.6",
|
|
"@babel/plugin-transform-block-scoping": "^7.18.9",
|
|
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
|
|
"@babel/preset-react": "^7.18.6",
|
|
"@babel/preset-typescript": "^7.18.6",
|
|
"@babel/traverse": "^7.2.0",
|
|
"@testing-library/react": "^13.4.0",
|
|
"@tsconfig/node18-strictest": "^1.0.0",
|
|
"@types/glob": "^8.1.0",
|
|
"@types/invariant": "^2.2.35",
|
|
"@types/jest": "^29.0.3",
|
|
"@types/node": "^18.7.18",
|
|
"@typescript-eslint/eslint-plugin": "^5.51.0",
|
|
"@typescript-eslint/parser": "^5.51.0",
|
|
"babel-jest": "^29.0.3",
|
|
"babel-plugin-fbt": "^1.0.0",
|
|
"babel-plugin-fbt-runtime": "^1.0.0",
|
|
"babel-plugin-syntax-hermes-parser": "^0.15.1",
|
|
"eslint": "8.27.0",
|
|
"glob": "^7.1.6",
|
|
"hermes-parser": "^0.19.1",
|
|
"jest": "^29.0.3",
|
|
"jest-environment-jsdom": "^29.0.3",
|
|
"prettier": "2.8.8",
|
|
"react": "^0.0.0-experimental-493f72b0a-20230727",
|
|
"react-dom": "^0.0.0-experimental-493f72b0a-20230727",
|
|
"rimraf": "^3.0.2",
|
|
"rollup-plugin-license": "^3.2.0",
|
|
"ts-jest": "^29.1.1",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "^5.1.0"
|
|
},
|
|
"resolutions": {
|
|
"./**/@babel/parser": "7.7.4",
|
|
"./**/@babel/plugin-syntax-flow": "7.7.4",
|
|
"./**/@babel/types": "7.7.4",
|
|
"@babel/core": "7.2.0",
|
|
"@babel/generator": "7.2.0",
|
|
"@babel/traverse": "7.7.4"
|
|
}
|
|
}
|