You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,9 +162,9 @@ Links:
162
162
163
163
3. Install the dependencies: `yarn`
164
164
165
-
4. To start in developer mode with hot-refresh server (degraded performance): run `yarn start` and visit [http://localhost:3000](http://localhost:3000)
165
+
4. To start in developer mode with hot-refresh server (degraded performance): run `yarn dev:web` and visit [http://localhost:3000](http://localhost:3000)
166
166
167
-
5. To build optimized for best performance run: `yarn build`
167
+
5. To build optimized for best performance run: `yarn build:web`
168
168
169
169
6. To serve a build:
170
170
1. Install a simple server e.g. `npm install -g serve` (or your lightweight http server of choice)
@@ -176,19 +176,18 @@ Links:
176
176
177
177
#### Browser extension quickstart for devs
178
178
179
-
1. Work from the ui/extension dir: `cd ui/extension`
179
+
1. Work from the ui dir: `cd ui`
180
180
181
181
2. Install the dependencies: `yarn`
182
182
183
-
3. Configure your .env file: `cp .env.example .env`
184
-
1. Set `POPUP_URL` to your intended hosted popup page. If you are serving it from `ui` in [step #6](#ui-quickstart-for-devs), use [http://localhost:3000/popup](http://localhost:3000/popup). To use prod, set to [https://embed.lantern.io/popup](https://embed.lantern.io/popup).
185
-
2. Set `OFFSCREEN_URL` to your intended hosted offscreen page. If you are serving it from `ui` in [step #6](#ui-quickstart-for-devs), use [http://localhost:3000/offscreen](http://localhost:3000/offscreen). To use prod, set to [https://embed.lantern.io/offscreen](https://embed.lantern.io/offscreen).
1. Set `EXTENSION_POPUP_URL` to your intended hosted popup page. If you are serving it from `ui` in [step #6](#ui-quickstart-for-devs), use [http://localhost:3000/popup](http://localhost:3000/popup). To use prod, set to [https://embed.lantern.io/popup](https://embed.lantern.io/popup).
185
+
2. Set `EXTENSION_OFFSCREEN_URL` to your intended hosted offscreen page. If you are serving it from `ui` in [step #6](#ui-quickstart-for-devs), use [http://localhost:3000/offscreen](http://localhost:3000/offscreen). To use prod, set to [https://embed.lantern.io/offscreen](https://embed.lantern.io/offscreen).
186
186
187
187
3. To start in developer mode with hot-refresh server:
188
188
```
189
-
yarn dev chrome
190
-
yarn dev firefox
191
-
yarn dev edge
189
+
yarn dev:ext chrome
190
+
yarn dev:ext firefox
192
191
```
193
192
194
193
This will compile the extension and output to the `ui/extension/dist` dir. You can then load the unpacked extension in your browser of choice.
@@ -198,9 +197,8 @@ This will compile the extension and output to the `ui/extension/dist` dir. You c
198
197
199
198
4. To build for production:
200
199
```
201
-
yarn build chrome
202
-
yarn build firefox
203
-
yarn build edge
200
+
yarn build:ext chrome
201
+
yarn build:ext firefox
204
202
```
205
203
206
204
This will compile the extension and output a compressed build to the `ui/extension/packages` dir.
0 commit comments