SurfSense/extension
DESKTOP-RTLN3BA\$punk 92be286972 readme
2024-08-12 21:26:36 -07:00
..
.vscode init 2024-08-12 00:32:42 -07:00
public init 2024-08-12 00:32:42 -07:00
src readme 2024-08-12 21:18:25 -07:00
webpack init 2024-08-12 00:32:42 -07:00
.gitignore init 2024-08-12 00:32:42 -07:00
jest.config.js init 2024-08-12 00:32:42 -07:00
LICENSE init 2024-08-12 00:32:42 -07:00
package-lock.json init 2024-08-12 00:32:42 -07:00
package.json init 2024-08-12 00:32:42 -07:00
pnpm-lock.yaml init 2024-08-12 00:32:42 -07:00
postcss.config.js init 2024-08-12 00:32:42 -07:00
README.md init 2024-08-12 00:32:42 -07:00
tailwind.config.js init 2024-08-12 00:32:42 -07:00
tsconfig.json init 2024-08-12 00:32:42 -07:00
tsconfig.test.json init 2024-08-12 00:32:42 -07:00

Chrome Extension TypeScript Starter

build

Chrome Extension, TypeScript and Visual Studio Code

Prerequisites

Option

Includes the following

  • TypeScript
  • Webpack
  • React
  • Jest
  • Example Code
    • Chrome Storage
    • Options Version 2
    • content script
    • count up badge number
    • background

Project Structure

  • src/typescript: TypeScript source files
  • src/assets: static files
  • dist: Chrome Extension directory
  • dist/js: Generated JavaScript files

Setup

npm install

Import as Visual Studio Code project

...

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

npx jest or npm run test