To run the project locally for development, follow these steps:
-
Clone the repo and run
yarn
in the root directory of the repo to fetch all required dependencies. -
Run
yarn dev
to build and install the addon as a temporary extension in your Firefox. This uses web-ext. It will automatically watch for changes and reload the extension.You can pass additional arguments to the
web-ext run
. For example, if you want to use a different Firefox binary, use-f /path/to/firefox
. If you want want to use a temporary profile instead of your main one or you're getting the error "Your Firefox profile cannot be loaded. It may be missing or inaccessible.", first create an empty directory for the new profile (e.g. by runningmktemp -d
to make one in/tmp
) and then pass that to-p
.So, to combine the two scenarios, you might for example run:
yarn dev -f /home/user/prog/firefox-beta/firefox -p /tmp/tmp.Rr8As37Jv2