|
| 1 | +# Chrome 확장 프로그램 만들기 (.crx) |
| 2 | + |
| 3 | + |
| 4 | +[](https://www.oscs1024.com/project/guocaoyi/create-chrome-ext?ref=badge_small) |
| 5 | +[](https://www.npmjs.com/package/create-chrome-ext) |
| 6 | +[](https://www.npmjs.com/package/create-chrome-ext) |
| 7 | + |
| 8 | +[](https://github.com/guocaoyi/create-chrome-ext/actions/workflows/npm-publish.yml) |
| 9 | + |
| 10 | +> 여러 보일러플레이트를 지원하는 Chrome 확장 프로그램 구조를 만듭니다! |
| 11 | +
|
| 12 | +- 🚀 HMR을 통한 빠른 업데이트([Vite4](https://vitejs.dev) 사용) |
| 13 | +- 🥡 즉시 사용 가능 |
| 14 | +- 🌈 여러 프런트엔드 프레임워크 지원 ([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)) |
| 15 | +- 🥢 다양한 언어 지원 ([JavaScript](https://www.javascript.com/) · [TypeScript](https://www.typescriptlang.org/)) |
| 16 | +- 🧶 최적화된 빌드 (백그라운드 · 컨텐츠 · 팝업 · 옵션 · 사이드패널 · 개발도구 패널) |
| 17 | + |
| 18 | +[EN](./README.md) · [简体中文](./docs/README.zh-CN.md) · [French](./docs/README.fr-FR.md) · [Deutsch](./docs/README.de-DE.md) · [日本語](./docs/README.ja-JP.md) |
| 19 | + |
| 20 | +## 설치 |
| 21 | + |
| 22 | +> Node >= 14.18.0 |
| 23 | +
|
| 24 | +```bash |
| 25 | +# npm-create 명령어를 사용하거나 pnpm 또는 yarn을 사용하세요 |
| 26 | +λ npm create chrome-ext |
| 27 | + |
| 28 | +# 또는 npx 명령어를 사용하세요 |
| 29 | +λ npx create-chrome-ext |
| 30 | + |
| 31 | +# 또는 npm-init 명령어를 사용하세요 |
| 32 | +λ npm init chrome-ext |
| 33 | +``` |
| 34 | + |
| 35 | +## 사용 방법 |
| 36 | + |
| 37 | +추가 명령 줄 옵션을 사용하여 프로젝트 이름 및 사용하려는 템플릿을 직접 지정할 수도 있습니다. 예를 들어, Vite + Svelte 프로젝트 구조를 생성하려면 다음을 실행하세요: |
| 38 | + |
| 39 | +```bash |
| 40 | +# npm 6.x |
| 41 | +λ npm create chrome-ext@latest my-crx-app --template svelte-js |
| 42 | + |
| 43 | +# 또는 npm 7+에서는 추가 이중 대시가 필요합니다: |
| 44 | +λ npm create chrome-ext@latest my-crx-app -- --template react-ts |
| 45 | + |
| 46 | +# 또는 yarn을 사용하세요 |
| 47 | +λ yarn create chrome-ext my-crx-app --template vue-ts |
| 48 | + |
| 49 | +# 또는 pnpm을 사용하세요 |
| 50 | +λ pnpm create chrome-ext my-crx-app --template vanilla-ts |
| 51 | +``` |
| 52 | + |
| 53 | +또한 `crx` CLI로 프로젝트를 생성할 수도 있습니다. 다음을 실행하세요: |
| 54 | + |
| 55 | +```bash |
| 56 | +λ npm install create-chrome-ext --global |
| 57 | + |
| 58 | +# 그런 다음 |
| 59 | +λ crx my-crx-app |
| 60 | +# 또는 |
| 61 | +λ crx my-crx-app --template preact-js |
| 62 | +# 또는 create-chrome-exe (글로벌 환경 사용) |
| 63 | +λ create-chrome-ext my-crx-app |
| 64 | +``` |
| 65 | + |
| 66 | +## 미리보기 |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
0 commit comments