Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 2.52 KB

CONTRIBUTING.md

File metadata and controls

57 lines (45 loc) · 2.52 KB

Contributing to the project

Table of Contents


General

Write access to the GitHub repository is restricted, so make a fork and clone that. All work should be done on its own branch, named according to the issue number (e.g. 42 or bug/23). When you are finished with your work, push your feature branch to your fork, preserving branch name (not to master), and create a pull request.

Always pull from upstream master prior to sending pull-requests.

If you are looking for open issues, check out the following labels:

Web extensions documentation may be found on MDN.

In order for any pull request to be merged into master, it MUST pass npm test. When you open a pull request, you will see its status reported. If your branch is behind master, you may have the ability to update it from there.

checks not completed

checks passed

Requirements

JavaScript

The use of eval and inline scripts are prohibited.

All JavaScript MUST pass Eslint according to the rules defined in .eslintrc and have an extension of .js.

NPM

Several useful modules are included for Node users, which is strongly recommended for all development. Simply run npm install after download to install all Node modules and Git submodules. There are also several NPM scripts configured, which may be run using npm run $script.

  • npm run build Which packages the extension as an unsigned zip file in web-ext-artifacts/
  • npm test which runs any configured tests (eslint, stylelint, web-ext lint)
  • npm start which opens Firefox with a clean profile for testing purposes

Dev dependencies