Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.42 KB

CONTRIBUTING.md

File metadata and controls

30 lines (26 loc) · 1.42 KB

Installing development tools

  1. npm -g i pkg - Uses pkg
  2. npm -g i web-ext - Uses web-ext

Testing

Note: The "all" options—which are for installing for all users on the machine—do not currently work. Note also that if pkg is not used, the node on one's path will be used instead. For now, pkg should be used.

  1. npm run (pkg-)installer(-all)-(lint|run|addon) - Shortcut options for the following two steps
    1. npm run (pkg-)installer(-all) - Shortcut for the following two steps
      1. npm run build-(pkg-)installer(-all) - Shortcut for the following
        1. If pkg, build-pkg-native-apps(-all) - builds the Node executables for native messaging
        2. build-(pkg-)installer-component(-all) - Builds installations on the user machine
        3. If pkg, npm link
      2. npm run run-(pkg-)install - Executes the installer (to register as part of native messaging host files)
    2. One of:
      1. npm run lint - Runs ESLint and web-ext lint (which uses addons-linter)
      2. npm run run - Test the web extension in Firefox
      3. npm run addon - Building the add-on file for distribution, e.g., on AMO