JabRef browser extension uses the WebExtensions API.
Preparation:
- Install Node.js (e.g.,
choco install nodejs) and pnpm (e.g.,npm install -g pnpm). - Fork the repository.
- Checkout the repository.
- Install development dependencies via
pnpm install. - Start browser with the add-on activated:
Firefox:
pnpm dev:firefoxChrome:pnpm dev:opera
Now just follow the typical steps to contribute code:
- Create your feature branch:
git checkout -b my-new-feature - Make your changes and test them by running the extension in the browser as described above.
- Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request.
python scripts/import_and_patch_translators.pyupdates all Zotero submodules, post-processes the translators and applies the necessary patches for our extension
The following commands are used to update the dependencies of the project; as we use Renovate for automatic dependency updates this should not be necessary in most cases, but it is good to know how to do it manually:
pnpm outdatedgives an overview of outdated packages (doc)pnpm update --latestupdates all packagespnpm installinstalls updated packages
- Increase version number in
manifest.json pnpm build- Upload to:
- Remove the
keyfield inmanifest.jsonand build again. Then upload to: