Add a table of contents to the sidebar of your GitHub issues and pull requests.
MIT License
npm install
to install all required dependenciesnpm run build
The build step will create the distribution
folder, this folder will contain the generated extension.
Using web-ext is recommened for automatic reloading and running in a dedicated browser instance. Alternatively you can load the extension manually (see below).
npm run watch
to watch for file changes and build continuouslynpm install --global web-ext
(only only for the first time)web-ext run -t chromium
You can also load the extension manually in Chrome or Firefox.
Here are some websites you should refer to:
The extension doesn't target any specific ECMAScript environment or provide any transpiling by default. The extensions output will be the same ECMAScript you write. This allows us to always target the latest browser version, which is a good practice you should be following.
Being based on Parcel 2 and its WebExtension transformer, you get all the good parts:
manifest.json
It's possible to automatically publish to both the Chrome Web Store and Mozilla Addons at once by adding these secrets on GitHub Actions:
CLIENT_ID
, CLIENT_SECRET
, and REFRESH_TOKEN
from [Google APIs][link-cws-keys].WEB_EXT_API_KEY
, and WEB_EXT_API_SECRET
from [AMO][link-amo-keys].Also include EXTENSION_ID
in the secrets (how to find it) and add Mozilla’s gecko.id
to manifest.json
.
The GitHub Actions workflow will:
19.6.16
and sets it in the manifest.jsonThanks to the included GitHub Action Workflows, if you set up those secrets in the repo's Settings, the deployment will automatically happen: