Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guocaoyi/create-chrome-ext
🍺 Scaffolding your Chrome extension! Boilerplates: react \ vue \ svelte \ solid \ preact \ alpine \ lit \ stencil \ inferno \ vanilla
https://github.com/guocaoyi/create-chrome-ext
chrome-extension chrome-extension-boilerplate chrome-extension-starter create-chrome-extension inferno javascript lit-element manifest-v3 preact react solid starter stencil stenciljs svelte typescript vanilla-js vite vite4 vue
Last synced: 1 day ago
JSON representation
🍺 Scaffolding your Chrome extension! Boilerplates: react \ vue \ svelte \ solid \ preact \ alpine \ lit \ stencil \ inferno \ vanilla
- Host: GitHub
- URL: https://github.com/guocaoyi/create-chrome-ext
- Owner: guocaoyi
- License: mit
- Created: 2022-06-29T04:11:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T05:29:10.000Z (5 months ago)
- Last Synced: 2024-10-29T17:12:09.903Z (3 months ago)
- Topics: chrome-extension, chrome-extension-boilerplate, chrome-extension-starter, create-chrome-extension, inferno, javascript, lit-element, manifest-v3, preact, react, solid, starter, stencil, stenciljs, svelte, typescript, vanilla-js, vite, vite4, vue
- Language: JavaScript
- Homepage:
- Size: 4.21 MB
- Stars: 1,690
- Watchers: 10
- Forks: 121
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![crx-preview](./docs/img/crx-preview.png)
# Create Chrome Extension (.crx)
[![OSCS Status](https://www.oscs1024.com/platform/badge/guocaoyi/create-chrome-ext.svg?size=small)](https://www.oscs1024.com/project/guocaoyi/create-chrome-ext?ref=badge_small)
[![npm](https://img.shields.io/npm/v/create-chrome-ext?logo=npm)](https://www.npmjs.com/package/create-chrome-ext)
[![npm-download](https://img.shields.io/npm/dw/create-chrome-ext)](https://www.npmjs.com/package/create-chrome-ext)
![GitHub Language Count](https://img.shields.io/github/languages/count/guocaoyi/create-chrome-ext)
[![npm publish](https://github.com/guocaoyi/create-chrome-ext/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/guocaoyi/create-chrome-ext/actions/workflows/npm-publish.yml)> Scaffolding your chrome extension, multiple boilerplates supported!
- 🚀 Lightning Fast HMR(use [Vite@latest](https://vitejs.dev))
- 🌈 Multiple Framework Supported ([React](https://reactjs.org) · [Vue](https://vuejs.org) · [Svelte](https://svelte.dev) · [Preact](https://preactjs.com) · [Solid](https://www.solidjs.com) · [Alpine](https://alpinejs.dev) · [Lit](https://lit.dev) · [Inferno](https://www.infernojs.org) · [Stencil](https://stenciljs.com) · [Vanilla](http://vanilla-js.com))
- 🥢 Multiple Language Supported ([JavaScript](https://www.javascript.com/) · [TypeScript](https://www.typescriptlang.org/))
- 🥡 Out of Box (Background \ Content \ Popup \ Options \ SidePanel \ DevTools \ NewTab)
- 🧶 Optimized Builds[English](./README.md) · [简体中文](./docs/README.zh-CN.md) · [French](./docs/README.fr-FR.md) · [한국어](./docs/README.ko-KR.md) · [Indonesian](./docs/README.id-ID.md) · [Русский](./docs/README.ru-RU.md) · [Deutsch](./docs/README.de-DE.md) · [日本語](./docs/README.ja-JP.md) (by ChatGPT)
## Installing
> Node >= 14.18.0
```bash
# use npm-create command, or use pnpm | yarn
λ npm create chrome-ext# or use npx command
λ npx create-chrome-ext# or use npm-init command
λ npm init chrome-ext
```## 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:
```bash
# npm 6.x
λ npm create chrome-ext@latest my-crx-app --template svelte-js# or npm 7+, extra double-dash is needed:
λ npm create chrome-ext@latest my-crx-app -- --template react-ts# or yarn
λ yarn create chrome-ext my-crx-app --template vue-ts# or pnpm
λ pnpm create chrome-ext my-crx-app --template vanilla-ts
```You can also generator the project with `crx` cli, run:
```bash
λ npm install create-chrome-ext --global# and then
λ crx my-crx-app
# or
λ crx my-crx-app --template preact-js
# or use create-chrome-exe (global env)
λ create-chrome-ext my-crx-app
```## Preview
![crx-run](./docs/img/crx-run.png)
![crx-install](./docs/img/crx-install.png)
![crx-build](./docs/img/crx-build.png)