Table of contents:
- Prerequisites
- Option
- Includes the following
- Project Structure
- Setup
- Open in Visual Studio Code
- Build
- Build in watch mode
- Load extension to chrome
- Test
- node + npm (Current Version)
- TypeScript
- Webpack
- React
- Jest
- Code
- Chrome Storage
- Badge number
- Background script
Folder | Description |
---|---|
src/ |
TypeScript source files |
public/ |
static files |
dist |
Chrome Extension directory |
dist/js |
Generated JavaScript files |
npm install
npm run build
npm run watch
Run watch mode.
type Ctrl + Shift + B
Load dist
directory.
Run npx jest
or npm run test
.