https://github.com/talljack/chrome-extension-starter
https://github.com/talljack/chrome-extension-starter
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/talljack/chrome-extension-starter
- Owner: Talljack
- License: mit
- Created: 2023-03-22T11:01:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-20T11:39:59.000Z (over 2 years ago)
- Last Synced: 2025-01-21T04:16:35.010Z (over 1 year ago)
- Language: TypeScript
- Size: 562 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chrome Extension Starter Template
This is a starter template for building a Chrome Extension. It includes a basic manifest file and a popup page.
## Prerequisites
- [Node.js](https://nodejs.org/en/)
- [NPM](https://www.npmjs.com/)
## Includes the following
- [Vite](https://vitejs.dev/)
- [React](https://reactjs.org/)
- [Typescript](https://www.typescriptlang.org/)
- [Vitest](https://vitest.dev/)
- Example Code
- Storage
- content script
- background script
- popup page
- options page
## Getting Started
1. Use this template to create a new repository
2. Use Vscode to open the project
3. setup the project
```bash
pnpm install
```
## Build
```bash
pnpm build
```
## Watch
```bash
pnpm run watch
```
## Load extension to Chrome
1. Open the Extension Management page by navigating to chrome://extensions.
2. Load `dist` directory
## Test
some test files in `/src/background/test` directory, you can write your owner tests.
```bash
pnpm test
```