File tree Expand file tree Collapse file tree 5 files changed +19
-4
lines changed
packages/react-devtools-extensions Expand file tree Collapse file tree 5 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -32,5 +32,6 @@ packages/react-devtools-extensions/firefox/build
32
32
packages /react-devtools-extensions /firefox /* .xpi
33
33
packages /react-devtools-extensions /firefox /* .pem
34
34
packages /react-devtools-extensions /shared /build
35
+ packages /react-devtools-extensions /.tempUserDataDir
35
36
packages /react-devtools-inline /dist
36
37
packages /react-devtools-shell /dist
Original file line number Diff line number Diff line change 4
4
5
5
const chromeLaunch = require ( 'chrome-launch' ) ;
6
6
const { resolve} = require ( 'path' ) ;
7
+ const { argv} = require ( 'yargs' ) ;
7
8
8
9
const EXTENSION_PATH = resolve ( './chrome/build/unpacked' ) ;
9
- const START_URL = 'https://facebook.github.io/react /' ;
10
+ const START_URL = argv . url || 'https://reactjs.org /' ;
10
11
11
12
chromeLaunch ( START_URL , {
12
- args : [ `--load-extension=${ EXTENSION_PATH } ` ] ,
13
+ args : [
14
+ // Load the React DevTools extension
15
+ `--load-extension=${ EXTENSION_PATH } ` ,
16
+
17
+ // Automatically open DevTools window
18
+ '--auto-open-devtools-for-tabs' ,
19
+
20
+ // Remembers previous session settings (e.g. DevTools size/position)
21
+ '--user-data-dir=./.tempUserDataDir' ,
22
+ ] ,
13
23
} ) ;
Original file line number Diff line number Diff line change 5
5
const open = require ( 'open' ) ;
6
6
const os = require ( 'os' ) ;
7
7
const osName = require ( 'os-name' ) ;
8
- const START_URL = 'https://facebook.github.io/react/' ;
9
8
const { resolve} = require ( 'path' ) ;
9
+ const { argv} = require ( 'yargs' ) ;
10
10
11
11
const EXTENSION_PATH = resolve ( './edge/build/unpacked' ) ;
12
+ const START_URL = argv . url || 'https://reactjs.org/' ;
13
+
12
14
const extargs = `--load-extension=${ EXTENSION_PATH } ` ;
13
15
14
16
const osname = osName ( os . platform ( ) ) ;
Original file line number Diff line number Diff line change 5
5
const { exec} = require ( 'child-process-promise' ) ;
6
6
const { Finder} = require ( 'firefox-profile' ) ;
7
7
const { resolve} = require ( 'path' ) ;
8
+ const { argv} = require ( 'yargs' ) ;
8
9
9
10
const EXTENSION_PATH = resolve ( './firefox/build/unpacked' ) ;
10
- const START_URL = 'https://facebook.github.io/react /' ;
11
+ const START_URL = argv . url || 'https://reactjs.org /' ;
11
12
12
13
const main = async ( ) => {
13
14
const finder = new Finder ( ) ;
Original file line number Diff line number Diff line change 1
1
[ignore]
2
2
.*/scripts/bench/.*
3
3
.*/build/.*
4
+ .*/.tempUserDataDir/.*
4
5
5
6
# These shims are copied into external projects:
6
7
.*/rollup/shims/facebook-www/.*
You can’t perform that action at this time.
0 commit comments