Development contribution guide (work-in-progress).
To run the extension in development:
-
Fork the repository
-
Clone the fork locally and navigate to the containing folder
-
Install dependencies:
npm install
-
Install the stylus package globally:
npm install -g stylus
To run the development server in watch mode:
npm run watch
In order to access the development build in Chrome, you must enable developer extensions.
- Open Chrome
- Navigate to
chrome://extensions/
(More Tools
>Extensions
) - Enable
Developer mode
in the top-right corner - Click
Load unpacked
- Select the
dist
folder of the project directory
In order to access the development build in Firefox, you can either run it on the command-line via web-ext
or load it as a temporary add-on.
To run via command-line (with automatic reloading when files change):
-
Install
web-ext
globally:npm install -g web-ext
-
Make sure the development build is running (in watch mode)
-
Navigate into the
dist
directory, and runweb-ext
:web-ext run
This will open a browser with the add-on loaded.
To load as a temporary add-on:
- Open Firefox
- Navigate to
about:debugging
- Click
Enable add-on debugging
- Click
Load Temporary Add-on
and select themanifest.json
file in thedist
directory
To run all linting:
npm run lint
To automatically fix linting errors:
npm run lint-fix
To create new features, please take a look at the format of any feature file found here.
Proper documentation for contributing is a work in progress. Thanks for the patience! 🙂