Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/parkerm/close-tabs-to-left
- Owner: ParkerM
- License: mit
- Created: 2020-02-05T23:49:40.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2022-11-19T22:26:16.000Z (about 2 years ago)
- Last Synced: 2023-08-15T06:28:54.504Z (over 1 year ago)
- Topics: browser-extension, firefox, firefox-extension, jest, tabs, typescript, web-ext, web-extension, webpack
- Language: TypeScript
- Homepage: https://addons.mozilla.org/en-US/firefox/addon/close-tabs-to-left/
- Size: 564 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# close-tabs-to-left
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
```