extension 2.0.0-beta.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cli.js +19 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/js-frameworks.d.ts +3 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
[fossa-image]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcezaraugusto%2Fextension.svg?type=shield&issueType=license
|
|
14
14
|
[fossa-url]: https://app.fossa.com/projects/git%2Bgithub.com%2Fcezaraugusto%2Fextension?ref=badge_shield&issueType=license
|
|
15
15
|
[discord-image]: https://img.shields.io/discord/1253608412890271755?label=Discord&logo=discord&style=flat
|
|
16
|
-
[discord-url]: https://discord.gg/
|
|
16
|
+
[discord-url]: https://discord.gg/v9h2RgeTSN
|
|
17
17
|
|
|
18
18
|
# Extension.js [![fossa][fossa-image]][fossa-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![workflow][action-image]][action-url] [![discord][discord-image]][discord-url]
|
|
19
19
|
|
|
@@ -56,7 +56,7 @@ For a preview of extensions running these technologies, see documentation about
|
|
|
56
56
|
|
|
57
57
|
| <img src="https://github.com/cezaraugusto/extension.js/assets/4672033/a9e2541a-96f0-4caa-9fc9-5fc5c3e901c8" width="70"> | <img src="https://github.com/cezaraugusto/extension.js/assets/4672033/b42c5330-9e2a-4045-99c3-1f7d264dfaf4" width="70"> | <img src="https://github.com/cezaraugusto/extension.js/assets/4672033/f19edff3-9005-4f50-b05c-fba615896a7f" width="70"> | <img src="https://github.com/cezaraugusto/extension.js/assets/4672033/ff64721d-d145-4213-930d-e70193f8d57e" width="70"> | <img src="https://github.com/cezaraugusto/extension.js/assets/4672033/15f1314a-aa65-4ce2-a3f3-cf53c4f730cf" width="70"> | <img src="https://github.com/cezaraugusto/extension.js/assets/4672033/c5f8a127-3c2a-4ceb-bb46-948cf2c8bd89" width="70"> | <img src="https://github.com/cezaraugusto/extension.js/assets/4672033/de1082fd-7cf6-4202-8c12-a5c3cd3e5b42" width="70"> | <img src="https://github.com/cezaraugusto/extension.js/assets/4672033/78e5fe3d-dc79-4aa2-954e-1a5973d1d9db" width="70"> | <img src="https://github.com/cezaraugusto/extension.js/assets/4672033/8807efd9-93e5-4db5-a1d2-9ac524f7ecc2" width="70"> |
|
|
58
58
|
| :---------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------: |
|
|
59
|
-
| ESNext<br>✅ | TypeScript<br>✅ | WASM<br>✅ | React<br>✅ | Vue<br>✅ | Angular<br>👋 | Svelte<br
|
|
59
|
+
| ESNext<br>✅ | TypeScript<br>✅ | WASM<br>✅ | React<br>✅ | Vue<br>✅ | Angular<br>👋 | Svelte<br>✅ | Solid<br>👋 | Preact<br>✅ |
|
|
60
60
|
|
|
61
61
|
👋 = PR Welcome!
|
|
62
62
|
|
package/dist/cli.js
CHANGED
|
@@ -117,7 +117,7 @@ var package_default = {
|
|
|
117
117
|
node: ">=18"
|
|
118
118
|
},
|
|
119
119
|
name: "extension",
|
|
120
|
-
version: "2.0.0-beta.
|
|
120
|
+
version: "2.0.0-beta.2",
|
|
121
121
|
description: "Create cross-browser extensions with no build configuration.",
|
|
122
122
|
main: "./dist/cli.js",
|
|
123
123
|
types: "./dist/cli.d.ts",
|
|
@@ -260,6 +260,24 @@ extensionJs.command("start").arguments("[project-path|remote-url]").usage("start
|
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
});
|
|
263
|
+
extensionJs.command("preview").arguments("[project-name]").usage("preview [path-to-remote-extension] [options]").description("Builds the extension for production").option(
|
|
264
|
+
"--chromium-binary <path-to-binary>",
|
|
265
|
+
"specify a path to the Chromium binary. This option overrides the --browser setting. Defaults to the system default"
|
|
266
|
+
).option(
|
|
267
|
+
"--gecko-binary <path-to-binary>",
|
|
268
|
+
"specify a path to the Gecko binary. This option overrides the --browser setting. Defaults to the system default"
|
|
269
|
+
).option(
|
|
270
|
+
"-b, --browser <chrome | edge | firefox>",
|
|
271
|
+
"specify a browser to preview your extension in production mode"
|
|
272
|
+
).action(async function(pathOrRemoteUrl, { browser = "chrome", ...previewOptions }) {
|
|
273
|
+
for (const vendor of vendors(browser)) {
|
|
274
|
+
await (0, import_extension_develop.extensionPreview)(pathOrRemoteUrl, {
|
|
275
|
+
mode: "production",
|
|
276
|
+
browser: vendor,
|
|
277
|
+
...previewOptions
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
});
|
|
263
281
|
extensionJs.command("build").arguments("[project-name]").usage("build [path-to-remote-extension] [options]").description("Builds the extension for production").option(
|
|
264
282
|
"-b, --browser <chrome | edge | firefox>",
|
|
265
283
|
"specify a browser to run your extension in development mode"
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
/// <reference types="react-dom" />
|
|
4
2
|
/// <reference types="chrome" />
|
|
3
|
+
/// <reference types="./js-frameworks.d.ts" />
|
|
5
4
|
/// <reference path="./css-content.d.ts" />
|
|
6
5
|
/// <reference path="./css-modules.d.ts" />
|
|
7
6
|
/// <reference path="./images.d.ts" />
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"node": ">=18"
|
|
10
10
|
},
|
|
11
11
|
"name": "extension",
|
|
12
|
-
"version": "2.0.0-beta.
|
|
12
|
+
"version": "2.0.0-beta.2",
|
|
13
13
|
"description": "Create cross-browser extensions with no build configuration.",
|
|
14
14
|
"main": "./dist/cli.js",
|
|
15
15
|
"types": "./dist/cli.d.ts",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"semver": "^7.5.4",
|
|
50
50
|
"update-check": "^1.5.4",
|
|
51
51
|
"webextension-polyfill": "^0.12.0",
|
|
52
|
-
"extension-create": "2.0.0-beta.
|
|
53
|
-
"extension-develop": "2.0.0-beta.
|
|
52
|
+
"extension-create": "2.0.0-beta.2",
|
|
53
|
+
"extension-develop": "2.0.0-beta.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/jest": "^29.5.11",
|