create-chrome-ext

Scaffolding your chrome extension, multiple boilerplates supported

README

Create Chrome Extension (.crx)


Scaffolding your chrome extension, multiple boilerplates supported!


- 🚀 Lightning Fast HMR(use Vite2)
- 🥡 Out of Box
- 🌈 Multiple Frontend Framework Supported (9+)
- 🥢 Multiple Language Supported (TypeScript & JavaScript)
- 🧶 Optimized Builds
- 🌗 Light & Dark Mode

Installing


Node >= 14.18.0


  1. ```bash
  2. # use npm-create command, or use pnpm | yarn
  3. λ npm create chrome-ext

  4. # or use npx command
  5. λ npx create-chrome-ext

  6. # or use npm-init command
  7. λ npm init chrome-ext
  8. ```

Usage


You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + Svelte project, run:

  1. ```bash
  2. # npm 6.x
  3. λ npm create chrome-ext@latest my-crx-app --template svelte-js

  4. # or npm 7+, extra double-dash is needed:
  5. λ npm create chrome-ext@latest my-crx-app -- --template react-ts

  6. # or yarn
  7. λ yarn create chrome-ext my-crx-app --template vue-ts

  8. # or pnpm
  9. λ pnpm create chrome-ext my-crx-app --template vanilla-ts
  10. ```

You can also generator the project with crx cli, run:

  1. ```bash
  2. λ npm install create-chrome-ext --global

  3. # and then
  4. λ crx my-crx-app
  5. # or
  6. λ crx my-crx-app --template preact-js
  7. # or use create-chrome-exe (global env)
  8. λ create-chrome-ext my-crx-app
  9. ```

Supported Templates


framework presets include:


languages supported: