metro/package.json

71 lines
2.5 KiB
JSON
Raw Normal View History

2017-01-26 12:56:40 +00:00
{
"private": true,
"devDependencies": {
2017-02-25 08:24:59 +00:00
"babel-core": "^6.23.1",
"babel-eslint": "8.2.1",
"babel-jest": "23.0.0-beta.2",
2017-05-22 10:39:13 +00:00
"babel-plugin-syntax-trailing-function-commas": "^6.20.0",
2017-05-23 10:40:47 +00:00
"babel-plugin-transform-async-to-generator": "^6.24.1",
2017-05-22 10:39:13 +00:00
"babel-plugin-transform-class-properties": "^6.18.0",
2017-02-25 08:24:59 +00:00
"babel-plugin-transform-es2015-destructuring": "^6.23.0",
"babel-plugin-transform-es2015-parameters": "^6.23.0",
"babel-plugin-transform-es2015-spread": "^6.22.0",
2017-05-22 10:39:13 +00:00
"babel-plugin-transform-flow-strip-types": "^6.21.0",
"babel-plugin-transform-object-rest-spread": "^6.20.2",
2017-05-23 10:40:47 +00:00
"babel-preset-es2015-node": "^6.1.1",
2017-04-11 17:14:28 +00:00
"babel-preset-fbjs": "^2.1.0",
2017-01-26 12:56:40 +00:00
"chalk": "^1.1.3",
2017-05-23 10:40:47 +00:00
"codecov": "^2.2.0",
"eslint": "4.17.0",
"eslint-config-fb-strict": "22.1.0",
"eslint-plugin-babel": "4.1.2",
"eslint-plugin-flowtype": "2.43.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jest": "21.8.0",
"eslint-plugin-jsx-a11y": "6.0.3",
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.6.1",
"eslint-plugin-relay": "0.0.21",
"flow-bin": "^0.71.0",
2017-01-26 12:56:40 +00:00
"glob": "^7.1.1",
"istanbul-api": "^1.1.0",
"istanbul-lib-coverage": "^1.0.0",
"jest": "23.0.0-beta.2",
"lerna": "2.4.0",
2017-01-26 12:56:40 +00:00
"micromatch": "^2.3.11",
2017-02-23 16:38:25 +00:00
"mkdirp": "^0.5.1",
"prettier": "1.12.1",
2017-04-11 18:19:25 +00:00
"promise": "^7.1.1",
"sinon": "^2.2.0",
2017-05-23 10:58:55 +00:00
"temp": "^0.8.3"
2017-01-26 12:56:40 +00:00
},
"scripts": {
"build-clean": "rm -rf ./packages/*/build",
"build": "node ./scripts/build.js",
2017-05-22 10:51:24 +00:00
"clean-all": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules && yarn run build-clean",
"jest-coverage": "yarn run jest --coverage",
2017-01-26 12:56:40 +00:00
"lint": "eslint . --cache",
"lint-fix": "eslint . --fix --cache",
"postinstall": "node ./scripts/build.js",
"publish": "yarn run build-clean && yarn run build && lerna run prepare-release && lerna exec -- npm publish",
"postpublish": "lerna run cleanup-release",
"test-ci": "yarn run typecheck && yarn run lint && yarn run build && yarn run jest-coverage -i && node scripts/mapCoverage.js && codecov",
"test": "yarn run typecheck && yarn run lint && yarn run build && yarn run jest",
2017-01-26 12:56:40 +00:00
"typecheck": "flow check",
2017-05-22 10:51:24 +00:00
"watch": "yarn run build --silent && node ./scripts/watch.js"
2017-01-26 12:56:40 +00:00
},
"workspaces": [
"packages/*"
],
2017-01-26 12:56:40 +00:00
"jest": {
Add --maxWorkers flag and allow transformers to run in-band. Summary: This diff cleans up some cruft and adds some features: * It removes the usage of an env variable to control workers. * It removes the lazy and handwavy calculation on how many workers to use for jest-haste-map. Jest itself uses the maximum amount of workers available and it has never been reported as an issue – especially since it is a one-time startup cost of about 3 seconds on a cold cache only. * It adds a `--max-workers` flag to replace the env variable. This one is able to control both the number of workers for `jest-haste-map` as well as the transformers. * It makes the transformers run in the parent process if 1 or fewer workers are are specified. This should help with debugging. Once you approve this diff, I will publish a new version of metro to npm and update the version used in RN and remove the use of the env variable altogether: https://our.intern.facebook.com/intern/biggrep/?corpus=xplat&filename=&case=false&view=default&extre=&s=REACT_NATIVE_MAX_WORKERS&engine=apr_strmatch&context=false&filter[uninteresting]=false&filter[intern]=false&filter[test]=false&grep_regex= Note: the process of adding a CLI option is really broken. Commander also has a weird API. We should consider building a better public API for Metro and then consider how to build a new CLI on top of it and simplify our internal integration. I really don't like how Metro is integrated across pieces of the RN cli in ways that is hard to manage. But that is a larger task for another time :) Reviewed By: jeanlauliac Differential Revision: D5217726 fbshipit-source-id: 74efddbb87755a9e744c816fbc62efa21f6a79bf
2017-06-13 16:11:57 +00:00
"modulePathIgnorePatterns": [
"packages/.*/build"
],
2017-04-11 17:14:28 +00:00
"testEnvironment": "node",
2017-04-11 18:19:25 +00:00
"timers": "fake",
"setupFiles": [
"<rootDir>/scripts/setupJest.js"
]
2017-01-26 12:56:40 +00:00
}
}