Files
flipper/package.json
Brian Vaughn 85d098e695 React DevTools v4 integration
Summary:
This Diff is being posted for discussion purposes. It will not be ready to land until React DevTools v4 has been published to NPM.

Update React Native to be compatible with the [new version 4 React DevTools extension](https://github.com/bvaughn/react-devtools-experimental).

**Note that this is a breaking change**, as the version 3 and version 4 backends are **not compatible**. Once this update ships (in React Native) users will be required to update their version of the [`react-devtools` NPM package](https://www.npmjs.com/package/react-devtools). The same will be true for IDEs like Nuclide as well as other developer tools like Flipper and [React Native Debugger](https://github.com/jhen0409/react-native-debugger).

Related changes also included in this diff are:
* Pass an explicit whitelist of style props for the React Native style editor (to improve developer experience when adding new styles).
* Update `YellowBox` console patching to coordinate with DevTools own console patching.
  * Also improved formatting slightly by not calling `stringifySafe` for strings (since this adds visible quotation marks).

Regarding the console patching- component stacks will be appended by default when there's no DevTools frontend open. The frontend will provide an option to turn this behavior off though:

{F168852162}

React DevTools will detect if the new version is used with an older version of React Native, and offer inline upgrade instructions:

{F169306863}

**Note that the change to the `RCTEnableTurboModule` will not be included in this Diff**. I've just turned those off temporarily so I can use v8+Chrome for debugging.

Reviewed By: rickhanlonii

Differential Revision: D15973709

fbshipit-source-id: bb9d83fc829af4693e7a10a622acc95a411a48e4
2019-08-26 23:56:55 -07:00

169 lines
5.4 KiB
JSON

{
"name": "flipper",
"version": "0.23.4",
"versionDate": "2018-4-12",
"description": "Mobile development tool",
"productName": "Flipper",
"author": "Facebook Inc",
"main": "src/index.tsx",
"icon": "icon.png",
"category": "facebook-intern",
"privileged": true,
"build": {
"appId": "flipper",
"productName": "Flipper",
"artifactName": "Flipper-${os}.${ext}",
"mac": {
"category": "public.app-category.developer-tools",
"extendInfo": {
"NSUserNotificationAlertStyle": "alert"
}
},
"win": {
"publisherName": "Facebook, Inc."
},
"asar": false,
"fileAssociations": [
{
"ext": [
".flipper"
],
"name": "Flipper Data",
"role": "Viewer",
"icon": "document-icons/document.icns"
}
]
},
"resolutions": {
"@jest-runner/electron/electron": "5.0.8"
},
"jest": {
"transform": {
"\\.(js|tsx?)$": "<rootDir>/static/transforms/index.js"
},
"setupFiles": [
"<rootDir>/static/globalTestSetup.js"
],
"moduleNameMapper": {
"^flipper$": "<rootDir>/src/index.tsx"
}
},
"devDependencies": {
"@jest-runner/electron": "^2.0.1",
"@types/deep-equal": "^1.0.1",
"@types/invariant": "^2.2.30",
"@types/jest": "^24.0.16",
"@types/lodash.debounce": "^4.0.6",
"@types/react": "^16.8.24",
"@types/react-dom": "^16.8.5",
"@types/react-redux": "^7.1.1",
"@types/react-virtualized-auto-sizer": "^1.0.0",
"@types/react-window": "^1.8.1",
"@types/redux-persist": "^4.3.1",
"@types/rsocket-core": "^0.0.2",
"@types/uuid": "^3.4.5",
"@typescript-eslint/eslint-plugin": "^1.11.0",
"@typescript-eslint/parser": "^1.13.0",
"babel-code-frame": "^6.26.0",
"babel-eslint": "^10.0.1",
"electron": "^5.0.8",
"electron-builder": "^20.38.5",
"eslint": "^6.0.1",
"eslint-config-fbjs": "^3.1.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-flowtype": "^3.2.1",
"eslint-plugin-header": "^3.0.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.5.1",
"eslint-plugin-relay": "^1.0.0",
"flow-bin": "0.104.0",
"glob": "^7.1.2",
"jest": "^24.7.1",
"jest-fetch-mock": "^2.1.0",
"prettier": "1.17.0",
"redux-mock-store": "^1.5.3",
"typescript": "^3.5.2"
},
"dependencies": {
"@types/react-transition-group": "^4.2.2",
"@types/redux-devtools-extension": "^2.13.2",
"@types/rsocket-tcp-server": "^0.0.2",
"JSONStream": "^1.3.1",
"adbkit-fb": "2.10.1",
"ansi-to-html": "^0.6.3",
"async-mutex": "^0.1.3",
"chalk": "^2.3.0",
"child-process-es6-promise": "^1.2.1",
"codemirror": "^5.25.0",
"cross-env": "^5.2.0",
"dashify": "^2.0.0",
"deep-equal": "^1.0.1",
"detect-port": "^1.1.1",
"electron-devtools-installer": "^2.2.0",
"emotion": "^9.2.6",
"expand-tilde": "^2.0.2",
"express": "^4.15.2",
"fs-extra": "^8.0.1",
"immutable": "^4.0.0-rc.12",
"invariant": "^2.2.2",
"line-replace": "^1.0.2",
"lodash.debounce": "^4.0.8",
"mkdirp": "^0.5.1",
"node-fetch": "^2.3.0",
"openssl-wrapper": "^0.3.4",
"pkg": "^4.3.7",
"promise-retry": "^1.1.1",
"prop-types": "^15.6.0",
"query-string": "^6.2.0",
"react": "16.8.6",
"react-color": "^2.11.7",
"react-debounce-render": "^4.0.3",
"react-devtools-core": "^4.0.6",
"react-dom": "16.8.6",
"react-emotion": "^9.2.6",
"react-redux": "^5.0.7",
"react-test-renderer": "^16.5.2",
"react-transition-group": "^2.5.1",
"react-virtualized-auto-sizer": "^1.0.2",
"react-window": "^1.3.1",
"redux": "^4.0.0",
"redux-persist": "^5.10.0",
"remote-redux-devtools": "^0.5.16",
"rsocket-core": "^0.0.10",
"rsocket-tcp-server": "^0.0.10",
"socket.io": "^2.0.4",
"string-natural-compare": "^2.0.2",
"tmp": "0.0.33",
"uuid": "^3.3.2",
"websocket": "^1.0.24",
"which": "^1.3.1",
"ws": "^7.0.0",
"xdg-basedir": "^4.0.0",
"xml2js": "^0.4.19",
"yargs": "^13.2.2",
"yazl": "^2.5.1"
},
"scripts": {
"preinstall": "yarn config set ignore-engines",
"postinstall": "node scripts/yarn-install.js",
"rm-dist": "rm -rf dist",
"rm-modules": "rm -rf node_modules static/node_modules",
"rm-temp": "rm -rf $TMPDIR/jest* $TMPDIR/react-native-packager*",
"reset": "yarn cache clean && yarn rm-dist && yarn rm-modules && yarn rm-temp",
"start": "cross-env NODE_ENV=development node scripts/start-dev-server.js",
"build": "yarn rm-dist && cross-env NODE_ENV=production node scripts/build-release.js $@",
"build-headless": "yarn rm-dist && mkdir dist && cross-env NODE_ENV=production node scripts/build-headless.js $@",
"fix": "eslint . --fix --ext .js,.tsx",
"test": "jest --testPathPattern=\"node\\.(js|tsx)$\" --no-cache",
"test:debug": "node --inspect node_modules/.bin/jest --runInBand",
"test-electron": "jest --testPathPattern=\"electron\\.(js|tsx)$\" --testEnvironment=@jest-runner/electron/environment --runner=@jest-runner/electron --no-cache",
"test-with-device": "USE_ELECTRON_STUBS=1 jest --testPathPattern=\"device\\.(js|tsx)$\" --detectOpenHandles --no-cache",
"lint": "eslint . --ext .js,.tsx && flow check && tsc --noemit"
},
"optionalDependencies": {
"7zip-bin-mac": "^1.0.1"
}
}