Skip to content

Latest commit

 

History

History
84 lines (57 loc) · 1.57 KB

File metadata and controls

84 lines (57 loc) · 1.57 KB

Chrome extension template repo written in Typescript and React.

Table of contents:

Prerequisites

Option

Includes the following

  • TypeScript
  • Webpack
  • React
  • Jest
  • Code
    • Chrome Storage
    • Badge number
    • Background script

Project Structure

Folder Description
src/ TypeScript source files
public/ static files
dist Chrome Extension directory
dist/js Generated JavaScript files

Setup

npm install

Build

npm run build

Build in watch mode

terminal

npm run watch

Visual Studio Code

Run watch mode.

type Ctrl + Shift + B

Load extension to chrome

Load dist directory.

Test

Run npx jest or npm run test.