Skip to content

Commit 62813a2

Browse files
committed
Streamline templates with other examples
1 parent ec2733f commit 62813a2

File tree

20 files changed

+51
-84
lines changed

20 files changed

+51
-84
lines changed

extensions/extension-js-devtools/pages/welcome/scripts.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ const Welcome: React.FC = () => {
115115
<h1 className="mx-auto text-center text-4xl lg:text-5xl xl:text-6xl font-semibold tracking-tight">
116116
<span>{extension?.name || 'My Extension'}</span>
117117
<br />
118-
<span>is </span>
119118
<a href="#">
120119
<span
121120
id="extensionName"

programs/cli/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
[npm-version-image]: https://img.shields.io/npm/v/extension.svg?color=0971fe
22
[npm-version-url]: https://www.npmjs.com/package/extension
3-
[downloads-image]: https://img.shields.io/npm/dm/extension.svg?color=2ecc40
4-
[downloads-url]: https://npmjs.org/package/extension
53
[action-image]: https://github.com/extension-js/extension.js/actions/workflows/ci.yml/badge.svg?branch=main&color=2ecc40
64
[action-url]: https://github.com/extension-js/extension.js/actions
75
[discord-image]: https://img.shields.io/discord/1253608412890271755?label=Discord&logo=discord&style=flat&color=2ecc40
@@ -11,9 +9,9 @@
119

1210
> The cross-browser extension framework
1311
14-
# Extension.js [![Version][npm-version-image]][npm-version-url] [![Downloads][downloads-image]][downloads-url] [![workflow][action-image]][action-url] [![discord][discord-image]][discord-url]
12+
# Extension.js [![Version][npm-version-image]][npm-version-url] [![workflow][action-image]][action-url] [![discord][discord-image]][discord-url]
1513

16-
<img alt="Logo" align="right" src="https://avatars.githubusercontent.com/u/172809806" width="20%" />
14+
<img alt="Logo" align="right" src="https://avatars.githubusercontent.com/u/172809806" width="15.5%" />
1715

1816
- [Create A New Extension](#create-a-new-extension) — How to create a new extension.
1917
- [Get Started Immediately](#get-started-immediately) — Get work done in no time.

templates/javascript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Build the extension for production.
3535
npm run build
3636
```
3737

38-
### Preview
38+
### preview
3939

4040
Preview the extension in the browser.
4141

templates/javascript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"name": "@extension-js/javascript",
44
"description": "JavaScript-based extension template",
55
"version": "3.0.0",
6+
"license": "MIT",
7+
"type": "module",
68
"author": {
79
"name": "Cezar Augusto",
810
"email": "[email protected]",
911
"url": "https://cezaraugusto.com"
10-
},
11-
"license": "MIT",
12-
"type": "module"
12+
}
1313
}

templates/javascript/src/manifest.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,17 @@
44
"version": "1.0.0",
55
"name": "JavaScript Template",
66
"description": "JavaScript-based extension template",
7-
"chromium:manifest_version": 3,
8-
"firefox:manifest_version": 2,
9-
"author": "Your Name",
107
"icons": {
11-
"48": "images/javascript.png"
8+
"16": "images/javascript.png",
9+
"48": "images/javascript.png",
10+
"128": "images/javascript.png"
1211
},
1312
"chromium:action": {
14-
"default_icon": {
15-
"48": "images/javascript.png"
16-
},
13+
"default_icon": { "48": "images/javascript.png" },
1714
"default_title": "Open Side Panel"
1815
},
1916
"firefox:browser_action": {
20-
"default_icon": {
21-
"48": "images/javascript.png"
22-
},
17+
"default_icon": { "48": "images/javascript.png" },
2318
"default_title": "Open Side Panel"
2419
},
2520
"chromium:side_panel": {

templates/preact/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Build the extension for production.
3535
npm run build
3636
```
3737

38-
### Preview
38+
### preview
3939

4040
Preview the extension in the browser.
4141

templates/preact/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"name": "@extension-js/preact",
44
"description": "Preact-based extension with sidebar panel",
55
"version": "3.0.0",
6+
"license": "MIT",
7+
"type": "module",
68
"author": {
79
"name": "Cezar Augusto",
810
"email": "[email protected]",
911
"url": "https://cezaraugusto.com"
1012
},
11-
"license": "MIT",
12-
"type": "module",
1313
"dependencies": {
1414
"preact": "^10.19.6"
1515
},

templates/preact/src/manifest.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,17 @@
44
"version": "1.0.0",
55
"name": "Preact Template",
66
"description": "Preact-based extension with sidebar panel",
7-
"chromium:manifest_version": 3,
8-
"firefox:manifest_version": 2,
9-
"author": "Your Name",
107
"icons": {
11-
"48": "images/preact.png"
8+
"16": "images/preact.png",
9+
"48": "images/preact.png",
10+
"128": "images/preact.png"
1211
},
1312
"chromium:action": {
14-
"default_icon": {
15-
"48": "images/preact.png"
16-
},
13+
"default_icon": { "48": "images/preact.png" },
1714
"default_title": "Open Side Panel"
1815
},
1916
"firefox:browser_action": {
20-
"default_icon": {
21-
"48": "images/preact.png"
22-
},
17+
"default_icon": { "48": "images/preact.png" },
2318
"default_title": "Open Side Panel"
2419
},
2520
"chromium:side_panel": {

templates/react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Build the extension for production.
3535
npm run build
3636
```
3737

38-
### Preview
38+
### preview
3939

4040
Preview the extension in the browser.
4141

templates/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"name": "@extension-js/react",
44
"description": "React-based extension with sidebar panel",
55
"version": "3.0.0",
6+
"license": "MIT",
7+
"type": "module",
68
"author": {
79
"name": "Cezar Augusto",
810
"email": "[email protected]",
911
"url": "https://cezaraugusto.com"
1012
},
11-
"license": "MIT",
12-
"type": "module",
1313
"dependencies": {
1414
"react": "^18.3.1",
1515
"react-dom": "^18.3.1"

0 commit comments

Comments
 (0)