Skip to content

ParkerM/close-tabs-to-left

Repository files navigation

close-tabs-to-left

CI status Coverage report

Firefox extension that adds "Close Tabs to the Left" context menu entry.

⚠ Notice:

As a result of "Close Tabs to the Left" becoming standard functionality in Firefox version 88, this extension will be restricted to Firefox versions 87 and below.

Building

See package.json for more info on the yarn scripts mentioned here.

Requirements

  • Node.js 14
  • yarn 1.22+

Install

yarn install

Build and run locally

# output development build to ./dist
yarn build

# use "web-ext run" to spin up firefox with the built extension 
yarn start

Testing localization

  1. Install the desired language pack from Dictionaries and Language Packs.
  2. Create a non-default profile via about:profiles and set the preferred language.
  3. Launch via web-ext run --pref intl.locale.requested=<locale-id> -p "<profile-name>" --keep-profile-changes
    • Example configuration using the es-MX language pack and profile named esmx:
      web-ext run --pref intl.locale.requested=es-MX -p "esmx" --keep-profile-changes
      

See start:dev-es in package.json for a working configuration.

Generate changelog

Generates and commits a changelog and version bumps based on conventional commit rules.

yarn run stage

The following scripts are also provided to override automatic semver detection:

  • yarn run stage:patch
  • yarn run stage:minor
  • yarn run stage:major

Build and package release

Outputs a production-ready build artifact to ./web-ext-artifacts.

yarn run release