metro/package.json

63 lines
2.2 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",
2017-01-26 12:56:40 +00:00
"babel-eslint": "^7.1.1",
2017-02-23 16:38:25 +00:00
"babel-jest": "^19.0.0",
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",
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",
2017-01-26 12:56:40 +00:00
"eslint": "^3.11.1",
2017-05-23 10:40:47 +00:00
"eslint-config-fb-strict": "^20.0.3",
2017-01-26 12:56:40 +00:00
"eslint-plugin-babel": "^4.0.0",
"eslint-plugin-flowtype": "^2.28.2",
"eslint-plugin-prettier": "2.1.1",
2017-05-23 10:40:47 +00:00
"eslint-plugin-react": "^7.0.1",
"flow-bin": "^0.46.0",
2017-01-26 12:56:40 +00:00
"glob": "^7.1.1",
"image-size": "^0.5.1",
2017-01-26 12:56:40 +00:00
"istanbul-api": "^1.1.0",
"istanbul-lib-coverage": "^1.0.0",
2017-02-23 16:38:25 +00:00
"jest": "^19.0.2",
2017-05-23 10:40:47 +00:00
"lerna": "^2.0.0-rc.5",
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.3.1",
2017-04-11 18:19:25 +00:00
"promise": "^7.1.1",
2017-05-23 10:58:55 +00:00
"sinon": "^2.3.1",
"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",
2017-01-26 12:56:40 +00:00
"jest-coverage": "yarn run jest -- --coverage",
"lint": "eslint . --cache",
"lint-fix": "eslint . --fix --cache",
2017-01-26 12:56:40 +00:00
"postinstall": "node ./scripts/postinstall.js && node ./scripts/build.js",
"publish": "yarn run build-clean && yarn run build && lerna publish",
"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 && yarn run test-examples",
"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
},
"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
}
}