Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/parkerm/close-tabs-to-left

Firefox extension that adds a "Close Tabs to the Left" option in tab menus.
https://github.com/parkerm/close-tabs-to-left

browser-extension firefox firefox-extension jest tabs typescript web-ext web-extension webpack

Last synced: about 1 month ago
JSON representation

Firefox extension that adds a "Close Tabs to the Left" option in tab menus.

Awesome Lists containing this project

README

        

# 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](./package.json) for more info on the yarn scripts mentioned here.

### Requirements
- Node.js 14
- yarn 1.22+

### Install
```bash
yarn install
```

### Build and run locally
```bash
# 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](https://addons.mozilla.org/en-US/firefox/language-tools/).
1. Create a non-default profile via `about:profiles` and set the preferred language.
1. Launch via `web-ext run --pref intl.locale.requested= -p "" --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](./package.json) for a working configuration.

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

```bash
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`.

```bash
yarn run release
```