Required system tools:
apt-get install nodejs npm
npm install --global pnpmProject dependencies (also sets up Husky hooks):
pnpm installStart the watch mode to rebuild the extension automatically as files change:
pnpm run dev:rollup:watch| Script | Description |
|---|---|
pnpm run dev:rollup |
Build extension (development mode) |
pnpm run dev:rollup:watch |
Build and watch for changes |
pnpm run dev:eslint |
Run ESLint |
pnpm run dev:flowcheck |
Run Flow type checker |
pnpm run dev:flow-typed |
Install/update Flow type stubs for dependencies |
pnpm run dev:web-ext |
Lint extension with web-ext |
pnpm run prod:build |
Build extension (production mode) |
pnpm run test |
Run integration tests |
pnpm run release |
Create a release |
Chromium / Chrome:
- Go to
chrome://extensions/. - Enable Developer mode (top-right toggle).
- Click Load unpacked and select the
dist/folder. - Open a new tab and verify the extension loads correctly.
Firefox:
- Open
about:debugging. - Click This Firefox.
- Click Load Temporary Add-on and select any file inside the
dist/folder.
pnpm run start:chromium # launch Chromium with the extension loaded
pnpm run start:chrome # launch Chrome with the extension loaded
pnpm run start:firefox # launch Firefox with the extension loaded