Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 751 Bytes

contributing.md

File metadata and controls

42 lines (27 loc) · 751 Bytes

Contributing

Demo extension

There's a demo extension in both MV2 (manifest v2) and MV3 (manifest v3) variants. This extension can be build and run manually, via web-ext or as a test fixture.

Building the extension locally

Pick one of:

npm run demo:build
npm run demo:watch

Both MV2 and MV3 versions will be built at the same time

Running Jest tests

npm run jest

Both MV2 and MV3 versions will be tested in series.

Or pick one:

TARGET=2 npm run jest:core
TARGET=3 npm run jest:core

Running the demo extension locally

npx web-ext run

You can add these flags to web-ext:

  • -t chromium to open Chrome
  • --sourceDir test/dist/mv3 to open the Manifest v3 version instead of v2