File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
- Demo/test extension for ` webext-permission-toggle `
1
+ # Demo/test extension for ` webext-permission-toggle `
2
2
3
- Run these 3 commands simultaneusly to manually test the module:
3
+ First install ` web-ext ` globally:
4
+
5
+ ``` sh
6
+ npm i -g web-ext
7
+ ```
8
+
9
+ To manually test the module, first run this the top-level directory of
10
+ the repo:
4
11
5
12
``` sh
6
13
npm run watch
7
14
```
8
15
16
+ Now leave that running and simultaneously run the following, which
17
+ will run parcel to build the ` mv2 ` and ` mv3 ` targets defined in
18
+ ` package.json ` :
19
+
9
20
``` sh
10
- cd manual-test npm run watch
21
+ npm run demo: watch
11
22
```
12
23
24
+ Now you can launch various browser test combinations, e.g.
25
+
13
26
``` sh
14
- web-ext run # Install it globally first
27
+ web-ext run -s dist/mv2 -t firefox-desktop
28
+ web-ext run -s dist/mv3 -t chromium
15
29
```
30
+
31
+ Note that ` package.json ` specifies a default ` web-ext ` source
32
+ directory of ` dist/mv3 ` .
33
+
34
+ In Chrome and Chromium, in order to view the background worker console
35
+ debug messages, you'll need to enable Developer mode in
36
+ ` chrome://extensions/ ` .
You can’t perform that action at this time.
0 commit comments