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 watchIn order to access the development build in Chrome, you must enable developer extensions.
- Open Chrome
- Navigate to
chrome://extensions/(More Tools>Extensions) - Enable
Developer modein the top-right corner - Click
Load unpacked - Select the
distfolder 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-extglobally:npm install -g web-ext
-
Make sure the development build is running (in watch mode)
-
Navigate into the
distdirectory, 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-onand select themanifest.jsonfile in thedistdirectory
To run all linting:
npm run lintTo automatically fix linting errors:
npm run lint-fixTo 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! 🙂