Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.57 KB

File metadata and controls

32 lines (21 loc) · 1.57 KB

Prerequisites

  1. Download and install Node.js and npm for your platform
  2. Install editorconfig for your favourite text editor

Setup

  1. Fork this repository
  2. Clone your fork locally
  3. In your local copy, install the project dependencies with npm install

Development

Load your clone's src/ directory as a temporary addon:

If you make changes, be sure to reload the temporary addon.

CLI reference

  • npm start: Run your local copy of the addon (see web-ext run).
  • npm test: Runs all linters. Will report any syntax or style errors.
  • npm test --ignore-scripts: Runs only the addon linter. Only reports syntax and WebExtension API errors.
  • npm run autofix: Automatically fixes any style errors.
  • npm run build: Creates an unsigned ZIP of the addon.

Style guide

neostandard javascript style

This project's JavaScript style is enforced by linting. Use npm run autofix to format your code prior to commit.