No description
- TypeScript 67.6%
- CSS 12.8%
- Nix 11.8%
- HTML 7.8%
|
All checks were successful
CI / Check, lint, test, and build (push) Successful in 58s
Vite+ Chrome/Firefox extension template with React, TypeScript, Tailwind CSS. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| public | ||
| src | ||
| .gitignore | ||
| custom-vite-plugins.ts | ||
| devenv.lock | ||
| devenv.nix | ||
| devenv.yaml | ||
| manifest.dev.json | ||
| manifest.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
Vite+ Web Extension Template
A minimal Chrome/Firefox extension template using React, TypeScript, Tailwind CSS, and Vite+. The vp CLI is provided by nix-vite-plus through devenv.
Requirements
- Nix with flakes enabled
- devenv
- A package manager supported by Vite+ (
pnpmis pinned viapackageManager)
Setup
devenv shell
vp install
Development
Chrome is the default target:
vp build --mode development --watch
Or use the package scripts:
pnpm dev:chrome
pnpm dev:firefox
Load the generated extension directory in your browser:
- Chrome:
dist_chrome - Firefox:
dist_firefox
Production builds
pnpm build:chrome
pnpm build:firefox
The browser target is selected with BROWSER=chrome|firefox; vite.config.ts defaults to Chrome.
Checks and formatting
pnpm check
pnpm lint
pnpm fmt
These commands are handled by Vite+ (vp check, vp lint, and vp fmt).