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: packages/extension/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,20 @@ This is the WebExtension responsible for automating the browser
6
6
7
7
### Watching
8
8
9
+
Kicks off the gulp watcher that rebuilds the app/lib directories on change.
10
+
9
11
```bash
10
12
yarn workspace @packages/extension watch
11
13
```
12
14
13
15
## Building
14
16
17
+
`@packages/extension` has a few different build processes occurring that are all driven by the [`gulpfile`](./gulpfile.ts).
18
+
*`app` - The web extension piece of the code, has two separate bundles:
19
+
*`v2`: Version 2 of the web extension which uses [webpack](./webpack.config.mjs) to bundle the `app/v2` directory and output it as `background.js`
20
+
*`v3`: Version 3 of the web extension, which doesn't have any external dependencies so we are able to compile down to `ESM to run in the browser natively.
21
+
*`lib` - the `@packages/extension``main` entry that has utility methods on how to find/load the extension. This is transpiled to CommonJS as it is consumed in the Node context.
0 commit comments