Skip to content

Commit 767c21a

Browse files
authored
Merge pull request #11 from guocaoyi/docs/v0.8.1
merge(*):merge docs/v0.8.1 to origin main
2 parents 25a0bd4 + e92dfa5 commit 767c21a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+402
-573
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ Summary
99
5. version timestamp follow the yyyy.MM.dd format
1010
```
1111

12+
## 0.8.0 [2022.09.05]
13+
14+
- remove: qwik framework boilerplate
15+
- feat: stencil framework boilerplate
16+
1217
## 0.7.0 [2022.08.26]
1318

1419
- ci: update github action, add npm-build
1520

1621
## 0.6.0 [2022.07.16]
1722

18-
- feat: add qwik framework boilerplate
1923
- fix: fix lit framework boilerplate, start error
2024
- update: docs preview code image
2125

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
- 🧶 Optimized Builds
1818
- 🌗 Light & Dark Mode
1919

20+
[EN](./README.md) · [中文](./README_zh.md)
21+
2022
## Installing
2123

2224
> Node >= 14.18.0
@@ -67,7 +69,7 @@ You can also generator the project with `crx` cli, run:
6769

6870
framework presets include:
6971

70-
[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) · [Qwik](https://qwik.builder.io) · [Vanilla](http://vanilla-js.com)
72+
[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)
7173

7274
languages supported:
7375

README_zh.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Create Chrome Extension (.crx)
2+
3+
![crx-preview](./docs/crx-preview.png)
4+
5+
[![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)
6+
[![npm](https://img.shields.io/npm/v/create-chrome-ext?logo=npm)](https://www.npmjs.com/package/create-chrome-ext)
7+
[![npm-download](https://img.shields.io/npm/dw/create-chrome-ext)](https://www.npmjs.com/package/create-chrome-ext)
8+
![GitHub Language Count](https://img.shields.io/github/languages/count/guocaoyi/create-chrome-ext)
9+
[![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)
10+
11+
> Chrome 插件生成器,支持多种框架模板!
12+
13+
- 🚀 迅速的热更能力(采用 [Vite2](https://vitejs.dev))
14+
- 🥡 开箱即用
15+
- 🌈 多种前端框架支撑 (9+)
16+
- 🥢 支撑 TypeScript 以及 JavaScript
17+
- 🌗 明亮以及暗黑模式
18+
19+
## 安装
20+
21+
> Node >= 14.18.0
22+
23+
```bash
24+
# 使用 npm create 命令
25+
λ npm create chrome-ext
26+
27+
# 或者使用 npx 命令
28+
λ npx create-chrome-ext
29+
30+
# 或者使用 npm init 命令
31+
λ npm init chrome-ext
32+
```
33+
34+
## 用例
35+
36+
您还可以通过其他命令行配置直接指定项目名称和要使用的模板。比如 Vite + Svelte 项目,运行:
37+
38+
```bash
39+
# npm 6.x
40+
λ npm create chrome-ext@latest my-crx-app --template svelte-js
41+
42+
# npm 版本 7 以上, 注意 -- 命令选项
43+
λ npm create chrome-ext@latest my-crx-app -- --template react-ts
44+
45+
# or yarn
46+
λ yarn create chrome-ext my-crx-app --template vue-ts
47+
48+
# or pnpm
49+
λ pnpm create chrome-ext my-crx-app --template vanilla-ts
50+
```
51+
52+
You can also generator the project with `crx` cli, run:
53+
54+
```bash
55+
λ npm install create-chrome-ext --global
56+
57+
# and then
58+
λ crx my-crx-app
59+
# or
60+
λ crx my-crx-app --template preact-js
61+
# or use create-chrome-exe (global env)
62+
λ create-chrome-ext my-crx-app
63+
```
64+
65+
## 模板
66+
67+
预置的前端架构:
68+
69+
[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)
70+
71+
语言支持:
72+
73+
[JavaScript](https://www.javascript.com/) · [TypeScript](https://www.typescriptlang.org/)
74+
75+
## 预览
76+
77+
![crx-run](./docs/crx-run.png)
78+
![crx-install](./docs/crx-install.png)
79+
![crx-build](./docs/crx-build.png)

index.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ const Boilerplates = [
128128
},
129129
],
130130
},
131+
// {
132+
// name: 'stencil', // star:11 wd:419
133+
// kolor: ansi256(69),
134+
// },
131135
{
132136
name: 'inferno', // star:15.5 wd:88
133137
kolor: ansi256(202),
@@ -144,10 +148,6 @@ const Boilerplates = [
144148
},
145149
],
146150
},
147-
// {
148-
// name: 'qwik', // star:4.5 wd:0.8
149-
// kolor: ansi256(69),
150-
// },
151151
{
152152
name: 'vanilla', // star:0 wd:0
153153
kolor: ansi256(230),

npm-shrinkwrap.json

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-chrome-ext",
3-
"version": "0.7.1",
3+
"version": "0.8.0",
44
"type": "module",
55
"description": "Scaffolding your chrome extension, multiple boilerplates supported!",
66
"author": "yalda",
@@ -45,13 +45,13 @@
4545
"alpinejs",
4646
"inferno",
4747
"lit",
48-
"qwik",
48+
"stencil",
4949
"vanilla"
5050
],
5151
"bugs": {
5252
"url": "https://github.com/guocaoyi/create-chrome-ext/issues"
5353
},
54-
"homepage": "https://github.com/guocaoyi/create-chrome-ext",
54+
"homepage": "https://github.com/guocaoyi",
5555
"dependencies": {
5656
"kolorist": "^1.5.1",
5757
"minimist": "^1.2.6",

template-qwik-js/options.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

template-qwik-js/package.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

template-qwik-js/popup.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

template-qwik-js/src/background/index.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

template-qwik-js/src/content/index.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

template-qwik-js/src/manifest.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

template-qwik-js/src/options/Options.css

Lines changed: 0 additions & 48 deletions
This file was deleted.

template-qwik-js/src/options/Options.jsx

Lines changed: 0 additions & 25 deletions
This file was deleted.

template-qwik-js/src/options/index.css

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)