@@ -11,7 +11,7 @@ const {join} = require('path');
1111const build = require ( '../webextension/build' ) ;
1212
1313const main = async ( ) => {
14- const unpackedPath = await build (
14+ await build (
1515 'firefox' ,
1616 join ( __dirname , 'manifest.json' ) ,
1717 join ( __dirname , 'build' )
@@ -20,18 +20,13 @@ const main = async () => {
2020 console . log ( chalk . green ( '\nThe Firefox extension has been built!' ) ) ;
2121 console . log ( chalk . green ( 'You can test this build by running:' ) ) ;
2222 console . log ( chalk . gray ( '\n# From the react-devtools root directory:' ) ) ;
23- console . log ( 'npm run test:firefox' ) ;
24- console . log ( chalk . green ( '\nYou can also test by following the steps below:' ) ) ;
25- console . log ( chalk . gray ( '\n# Go to the unpacked directory:' ) ) ;
26- console . log ( `cd ${ unpackedPath } ` ) ;
27- console . log ( chalk . gray ( '\n# And launch Firefox with the extension enabled:' ) ) ;
28- console . log ( 'yarn run start:firefox' ) ;
23+ console . log ( 'yarn run test:firefox' ) ;
2924 console . log ( chalk . gray ( '\n# You can also test against upcoming Firefox releases.' ) ) ;
3025 console . log ( chalk . gray ( '# First download a release from https://www.mozilla.org/en-US/firefox/channel/desktop/' ) ) ;
31- console . log ( chalk . gray ( '# And then tell web-ext which release to use (eg nigthly, beta):' ) ) ;
32- console . log ( 'yarn run start :firefox -- --firefox=beta ' ) ;
26+ console . log ( chalk . gray ( '# And then tell web-ext which release to use (eg firefoxdeveloperedition, nigthly, beta):' ) ) ;
27+ console . log ( 'WEB_EXT_FIREFOX=nightly yarn run test :firefox' ) ;
3328 console . log ( chalk . gray ( '\n# You can test against older versions too:' ) ) ;
34- console . log ( 'yarn run start:firefox -- --firefox =/Applications/Firefox52.app/Contents/MacOS/firefox-bin' ) ;
29+ console . log ( 'WEB_EXT_FIREFOX =/Applications/Firefox52.app/Contents/MacOS/firefox-bin yarn run test:firefox ' ) ;
3530} ;
3631
3732main ( ) ;
0 commit comments