File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,36 @@ Works with [vuex](https://github.com/vuejs/vuex) for time-travel debugging:
38
38
3 . ` npm run dev `
39
39
4 . A plain shell with a test app will be available at ` localhost:8080 ` .
40
40
41
+ ### Testing as Firefox addon
42
+
43
+ 1 . Install ` web-ext `
44
+
45
+ ~~~~
46
+ $ npm install --global web-ext
47
+ ~~~~
48
+
49
+ Or, for Yarn:
50
+
51
+ ~~~~
52
+ $ yarn global add web-ext
53
+ ~~~~
54
+
55
+ Also, make sure `PATH` is set up. Something like this in `~/.bash_profile`:
56
+
57
+ ~~~~
58
+ $ PATH=$PATH:$(yarn global bin)
59
+ ~~~~
60
+
61
+ 2 . Build and run in Firefox
62
+
63
+ ~~~~
64
+ $ npm run build
65
+ $ npm run run:firefox
66
+ ~~~~
67
+
68
+ When using Yarn, just replace `npm` with `yarn`.
69
+
70
+
41
71
### License
42
72
43
73
[ MIT] ( http://opensource.org/licenses/MIT )
Original file line number Diff line number Diff line change 10
10
"lint" : " eslint src --ext=js,vue && eslint shells/chrome/src && eslint shells/dev/src && eslint shells/safari/src" ,
11
11
"build" : " cd shells/chrome && cross-env NODE_ENV=production webpack --progress --hide-modules" ,
12
12
"build:safari" : " cd shells/safari && NODE_ENV=production webpack --progress --hide-modules -p" ,
13
+ "run:firefox" : " web-ext run -s shells/chrome -a dist -i src" ,
13
14
"zip" : " npm run zip:chrome && npm run zip:firefox" ,
14
15
"zip:chrome" : " cd shells && zip -r -FS ../dist/chrome.zip chrome -x *src/* -x *webpack.config.js" ,
15
16
"zip:firefox" : " web-ext build -s shells/chrome -a dist -i src" ,
You can’t perform that action at this time.
0 commit comments