:desktop_computer: Web Extension starter kit built with React, TypeScript, TailwindCSS, Storybook, Jest, EsLint, Prettier, and Webpack. Supports Google Chrome + Mozilla Firefox + Brave Browser + Microsoft Edge + Opera :fire:
React TypeScript Web Extension Starter is a web extension starter kit built with React, TypeScript, Storybook, EsLint, Prettier, Jest, TailwindCSS, and Webpack. It is compatible with Google Chrome, Mozilla Firefox, Brave, and Microsoft Edge. The starter kit includes example extension popup and provides commands for installing dependencies, starting development, running tests, and building production-ready unpacked extensions. It also includes ESLint configured to work with TypeScript and Prettier, tests with Jest, and Storybook configured to work with React and TypeScript.
To install the React TypeScript Web Extension Starter, follow these steps:
Clone or download the repository.
Run the following commands to install dependencies and start developing:
yarn dev - runs webpack in watch modeyarn storybook - runs the Storybook serveryarn build - builds the production-ready unpacked extensionyarn test -u - runs Jest and updates test snapshotsyarn lint - runs ESLintyarn prettify - runs PrettierDepending on the browser you want to use, follow these steps to load the extension:
chrome://extensions in a new tab. Make sure the Developer Mode checkbox in the upper-right corner is turned on. Click Load unpacked and select the dist directory in this repository.brave://extensions in a new tab. Make sure the Developer Mode checkbox in the upper-right corner is turned on. Click Load unpacked and select the dist directory in this repository.about:debugging page in a new tab. Click the This Firefox link in the sidebar. On the This Firefox page, click the Load Temporary Add-on… button and select the manifest.json from the dist directory in this repository.edge://extensions in a new tab. Make sure the Developer Mode checkbox in the lower-left corner is turned on. Click Load unpacked and select the dist directory in this repository.Your extension should now be loaded and ready to use.
The React TypeScript Web Extension Starter is a comprehensive starter kit for building web extensions with React, TypeScript, and other popular tools. It provides a solid foundation for developing cross-browser compatible extensions and includes features like example extension popup, Storybook for component development, testing with Jest, and ESLint and Prettier for code quality. By following the installation guide, developers can quickly set up the starter kit and start building their own web extensions.