-
Install Node.js. Make sure the
npm
binary is added to thePATH
environment variable. -
Test if the installation succeeded. Run
node --version && npm --version
. You should get version numbers like this:v18.7.0 8.15.0
-
Go to the project root, run
npm install
.
Execute the following command:
npm run build
Extension will be ready under the build
directory after the task completes.
Currently, there are two types of tests in this project (eslint
and web-ext lint
). Execute them all with the following command:
npm test
If you want to pull translation from https://www.transifex.com/, you have to install transifex CLI.
After tx
CLI is prepared, run npm run build-locales
.
Before generating the ZIP file, you may want to:
- Update translation -
npm run build-locales
. - Make sure there is no error in the extension -
npm test
.
To generate the ZIP file, run npm run build-artifact
.
A release is just a commit tagged with a version number. Before bumping the version, you should:
- Make sure you are on the master branch.
- Update the changelog in README.md.
- Commit all the changes.
To bump the version, run npm version <newversion>
command. After bumping the version, the script will push tag to remote. The script also generates a ZIP file that can be uploaded to AMO.