Skip to content

Developers Guide

Yosuke Mizutani edited this page Apr 30, 2022 · 3 revisions

Setup

  • Install npm.
  • Install dependencies: npm install

Build

  • Build the project: npm run build
  • Watch the project: npm run watch

Testing

  • Firefox
    • Open about:debugging
    • Click on This Firefox
    • Click on Load Temporary Add-on... and select dist/firefox/manifest.json

Unit Testing

  • Run all tests: npm run test
  • Watch tests: npm run test:watch
  • Run all tests and collect the line coverage: npm run coverage

Publishing New Version

  • Update the following files (one line for each):
    • assets/manifest_chrome.json
    • assets/manifest_firefox.json
    • package.json
    • src/Config.ts
  • Run npm install and package-lock.json will be updated.
Clone this wiki locally