All Projects → extend-chrome → ts-react-boilerplate

extend-chrome / ts-react-boilerplate

Licence: MIT license
Chrome extension boilerplate with TypeScript and React

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to ts-react-boilerplate

rollup-plugin-markdown
import JavaScript from Markdown code blocks
Stars: ✭ 16 (-69.81%)
Mutual labels:  rollup
rollup-jest-boilerplate
🎉 Full featured boilerplate for building JavaScript libraries the modern way
Stars: ✭ 81 (+52.83%)
Mutual labels:  rollup
rocket
The modern web setup for static sites with a sprinkle of JavaScript
Stars: ✭ 169 (+218.87%)
Mutual labels:  rollup
rollup-plugin-jscc
Conditional compilation and compile-time variable replacement for Rollup
Stars: ✭ 52 (-1.89%)
Mutual labels:  rollup
chrome-snowplow-inspector
Web Extension for debugging Snowplow pixels.
Stars: ✭ 26 (-50.94%)
Mutual labels:  web-extension
vue-frag-plugin
Webpack/Rollup/Vite plugin to add multiple root-node support to Vue 2 SFCs
Stars: ✭ 37 (-30.19%)
Mutual labels:  rollup
js-module-system
A small UI library to demonstrate the JS module system
Stars: ✭ 36 (-32.08%)
Mutual labels:  rollup
rollup-plugin-swc
Rollup plugin to compile bundles with the SWC.
Stars: ✭ 59 (+11.32%)
Mutual labels:  rollup
react-component-lib
Boilerplate repo for creating npm packages with React components written in TypeScript and using styled-components
Stars: ✭ 69 (+30.19%)
Mutual labels:  rollup
npm-es-modules
Breakdown of 7 different ways to use ES modules with npm today.
Stars: ✭ 67 (+26.42%)
Mutual labels:  rollup
zero
📦 A zero config scripts library
Stars: ✭ 17 (-67.92%)
Mutual labels:  rollup
manager
OVHcloud Control Panel
Stars: ✭ 153 (+188.68%)
Mutual labels:  rollup
vue-methods-promise
Let Vue methods support return Promise
Stars: ✭ 35 (-33.96%)
Mutual labels:  rollup
TabsAsideExtension
Legacy Microsoft Edge "Tabs aside" feature extension for web browsers
Stars: ✭ 119 (+124.53%)
Mutual labels:  web-extension
unplugin-vue
✨ Transform Vue 3 SFC to JavaScript. Supports Vite, esbuild, Rollup and Webpack.
Stars: ✭ 38 (-28.3%)
Mutual labels:  rollup
sapper-typescript-esbuild-template
Sapper template with ESBuild and TypeScript
Stars: ✭ 18 (-66.04%)
Mutual labels:  rollup
fly-helper
It's a Tool library, method collection
Stars: ✭ 21 (-60.38%)
Mutual labels:  rollup
rollup-loader
Rollup does what it can do, and let Webpack finish the job.
Stars: ✭ 86 (+62.26%)
Mutual labels:  rollup
r1cs-tutorial
Tutorial for writing constraints in the `arkworks` framework
Stars: ✭ 74 (+39.62%)
Mutual labels:  rollup
LinkedIn-Focus
LinkedInFocus allows you to hide the news feed and news panel on LinkedIn so you can focus on your career!
Stars: ✭ 14 (-73.58%)
Mutual labels:  web-extension

TypeScript React Chrome Extension Boilerplate

A basic TypeScript React Chrome Extension boilerplate that gets you started quickly. It supports TypeScript, JSX, and automatic reloading during development. Jest, ESLint and Prettier included, all bundled using Rollup and rollup-plugin-chrome-extension.

Get Started

Using create-react-crx

Type this into your terminal:

npx create-react-crx

Follow the prompts to setup your Chrome extension project.

Using git clone

Type this into your terminal:

git clone https://github.com/extend-chrome/ts-react-boilerplate.git my-chrome-extension
cd my-chrome-extension
npm install

🖌️ Update your package name and version in package.json before you get started!

Development

For development with automatic reloading:

npm run start

Open the Extensions Dashboard, enable "Developer mode", click "Load unpacked", and choose the dist folder.

When you make changes in src the background script and any content script will reload automatically.

Production

When it's time to publish your Chrome extension, make a production build to submit to the Chrome Web Store. This boilerplate will use the version in package.json, unless you add a version to src/manifest.json.

Make sure you have updated the name and version of your extension in package.json.

Run the following line:

npm run build

This will create a ZIP file with your package name and version in the releases folder.

Source Layout

Your manifest is at src/manifest.json, and Rollup will bundle any files you include here. All the filepaths in your manifest should point to files in src.

Features

  • Uses Rollup to bundle your extension
  • Chrome Extension automatic reloader
  • Jest configuration for testing

Resources

Chrome Extension official documentation

How to Publish your extension step by step video tutorial

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].