Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Commit 6a9c7cb

Browse files
committed
Standalone React Devtools
Summary: New standalone Devtools came out for React Native, so we can install it at project generation time and introduce a package.json script that launches it. Reviewed By: mikearmstrong001 Differential Revision: D4974282 fbshipit-source-id: 75d0cdb
1 parent c3238d8 commit 6a9c7cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

react-vr-cli/generators/package.json.generator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = config => ({
1919
"start": "node -e \\"console.log('open browser at http:/localhost:8081/vr/\\\\n\\\\n');\\" && node node_modules/react-native/local-cli/cli.js start",
2020
"bundle": "node node_modules/react-vr/scripts/bundle.js",
2121
"open": "node -e \\"require('xopen')('http://localhost:8081/vr/')\\"",
22+
"devtools": "react-devtools",
2223
"test": "jest"
2324
},
2425
"dependencies": {
@@ -33,6 +34,7 @@ module.exports = config => ({
3334
"babel-jest": "^19.0.0",
3435
"babel-preset-react-native": "^1.9.1",
3536
"jest": "^19.0.2",
37+
"react-devtools": "^2.1.3",
3638
"react-test-renderer": "~15.4.1",
3739
"xopen": "1.0.0"
3840
},

0 commit comments

Comments
 (0)