- Install Node.js.
- Install PNPM e.g. run
npm install -g pnpmor use another method for your OS, see https://pnpm.io/installation - Go to the project root, run
pnpm i. This will install all required dependencies.
Extra preparations are needed if you want to pull locale files from Transifex:
- Install Transifex client. Follow the instructions on this page.
- You need a
.transifexrcfile in the root folder. Contact another admin if you need one. It includes the API key to use Transifex's API.
| type | command |
|---|---|
| MV2 for any browser | pnpm build-mv2 |
| MV2 Firefox optimized | pnpm build-firefox |
| MV3 Chrome/Chromiums | pnpm build-chrome-mv3 |
| MV2 | pnpm watch-mv2 |
| MV3 | pnpm watch-chrome-mv3 |
⚠ dist folder is cleared only in build mode.
See package.json for other variants.
You can also manually run node tools/build.js with arguments [build|watch|serve] [any|chrome|firefox] [mv2|mv3]
- every parameter is optional
- the default is
buildanymv2 firefoxis hardcoded to producemv2buildmv3is hardcoded to produce an optimizedchromebuild
| type | command |
|---|---|
| Beta/Dev | pnpm bump |
| Stable | pnpm bump-stable |
There are some scripts that will run automatically before/after tagging a version. Includes:
- Test.
- Update version number in
manifest.json. - Generate the ZIP file.
- Push the tag to GitHub.
We host locale files (message.json) on Transifex. All the files exist in our GitHub repository, but if you need to update the locale files, you will need to install the Transifex client
To pull files from Transifex, run
pnpm update-locales
To push files to Transifex:
pnpm update-transifex