packages/extension/README.md
This is the WebExtension responsible for automating the browser
Kicks off the gulp watcher that rebuilds the app/lib directories on change.
yarn workspace @packages/extension watch
@packages/extension has a few different build processes occurring that are all driven by the gulpfile.
app - The web extension piece of the code, has two separate bundles:
v2: Version 2 of the web extension which uses webpack to bundle the app/v2 directory and output it as background.jsv3: 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.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.yarn workspace @packages/extension build
yarn workspace @packages/extension test
yarn workspace @packages/extension test-watch
yarn workspace @packages/extension test-debug
chrome://extensions)background.js (inspect views background page)manifest.jsoncypress open.about:debugging.This Firefox navigation item on the left hand navigation pane and locate the Cypress extension under Temporary Extensions.inspect. A console window should now appear in a separate window.about:debugging tab.background.js in the Debugger tab.