extension 2.0.0-alpha.27 → 2.0.0-alpha.29
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/dist/cli.d.ts +1 -0
- package/dist/cli.js +22 -7
- package/package.json +3 -3
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
|
@@ -22,8 +22,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
23
|
mod
|
|
24
24
|
));
|
|
25
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
26
|
|
|
26
27
|
// cli.ts
|
|
28
|
+
var cli_exports = {};
|
|
29
|
+
module.exports = __toCommonJS(cli_exports);
|
|
27
30
|
var import_commander = require("commander");
|
|
28
31
|
var import_extension_create = require("extension-create");
|
|
29
32
|
var import_extension_develop = require("extension-develop");
|
|
@@ -114,7 +117,7 @@ var package_default = {
|
|
|
114
117
|
node: ">=18"
|
|
115
118
|
},
|
|
116
119
|
name: "extension",
|
|
117
|
-
version: "2.0.0-alpha.
|
|
120
|
+
version: "2.0.0-alpha.29",
|
|
118
121
|
description: "Create cross-browser extensions with no build configuration.",
|
|
119
122
|
main: "./dist/cli.js",
|
|
120
123
|
types: "./dist/cli.d.ts",
|
|
@@ -201,16 +204,22 @@ extensionJs.command("create").arguments("<project-name|project-path>").usage("cr
|
|
|
201
204
|
});
|
|
202
205
|
extensionJs.command("dev").arguments("[project-path|remote-url]").usage("dev [project-path|remote-url] [options]").description("Starts the development server (development mode)").option(
|
|
203
206
|
"-u, --user-data-dir <path-to-file | boolean>",
|
|
207
|
+
'[DEPRECATED - Use "--profile" instead] what path to use for the browser profile. A boolean value of false sets the profile to the default user profile. Defaults to a fresh profile'
|
|
208
|
+
).option(
|
|
209
|
+
"-p, --profile <path-to-file | boolean>",
|
|
204
210
|
"what path to use for the browser profile. A boolean value of false sets the profile to the default user profile. Defaults to a fresh profile"
|
|
205
211
|
).option(
|
|
206
212
|
"-b, --browser <chrome | edge | firefox>",
|
|
207
213
|
"specify a browser to run your extension in development mode"
|
|
214
|
+
).option(
|
|
215
|
+
"--chromium-binary <path-to-binary>",
|
|
216
|
+
"specify a path to the Chromium binary. This option overrides the --browser setting. Defaults to the system default"
|
|
217
|
+
).option(
|
|
218
|
+
"--gecko-binary <path-to-binary>",
|
|
219
|
+
"specify a path to the Gecko binary. This option overrides the --browser setting. Defaults to the system default"
|
|
208
220
|
).option(
|
|
209
221
|
"--polyfill [boolean]",
|
|
210
222
|
"whether or not to apply the cross-browser polyfill. Defaults to `true`"
|
|
211
|
-
).option(
|
|
212
|
-
"-p, --port <number>",
|
|
213
|
-
"what port should Extension.js run. Defaults to `3000`"
|
|
214
223
|
).action(async function(pathOrRemoteUrl, { browser = "chrome", ...devOptions }) {
|
|
215
224
|
for (const vendor of vendors(browser)) {
|
|
216
225
|
await (0, import_extension_develop.extensionDev)(pathOrRemoteUrl, {
|
|
@@ -221,16 +230,22 @@ extensionJs.command("dev").arguments("[project-path|remote-url]").usage("dev [pr
|
|
|
221
230
|
});
|
|
222
231
|
extensionJs.command("start").arguments("[project-path|remote-url]").usage("start [project-path|remote-url] [options]").description("Starts the development server (production mode)").option(
|
|
223
232
|
"-u, --user-data-dir <path-to-file | boolean>",
|
|
233
|
+
'[DEPRECATED - Use "--profile" instead] what path to use for the browser profile. A boolean value of false sets the profile to the default user profile. Defaults to a fresh profile'
|
|
234
|
+
).option(
|
|
235
|
+
"-p, --profile <path-to-file | boolean>",
|
|
224
236
|
"what path to use for the browser profile. A boolean value of false sets the profile to the default user profile. Defaults to a fresh profile"
|
|
225
237
|
).option(
|
|
226
238
|
"-b, --browser <chrome | edge | firefox>",
|
|
227
239
|
"specify a browser to run your extension in development mode"
|
|
240
|
+
).option(
|
|
241
|
+
"--chromium-binary <path-to-binary>",
|
|
242
|
+
"specify a path to the Chromium binary. This option overrides the --browser setting. Defaults to the system default"
|
|
243
|
+
).option(
|
|
244
|
+
"--gecko-binary <path-to-binary>",
|
|
245
|
+
"specify a path to the Gecko binary. This option overrides the --browser setting. Defaults to the system default"
|
|
228
246
|
).option(
|
|
229
247
|
"--polyfill [boolean]",
|
|
230
248
|
"whether or not to apply the cross-browser polyfill. Defaults to `true`"
|
|
231
|
-
).option(
|
|
232
|
-
"-p, --port <number>",
|
|
233
|
-
"what port should Extension.js run. Defaults to `3000`"
|
|
234
249
|
).action(async function(pathOrRemoteUrl, { browser = "chrome", ...startOptions }) {
|
|
235
250
|
for (const vendor of vendors(browser)) {
|
|
236
251
|
await (0, import_extension_develop.extensionStart)(pathOrRemoteUrl, {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"node": ">=18"
|
|
10
10
|
},
|
|
11
11
|
"name": "extension",
|
|
12
|
-
"version": "2.0.0-alpha.
|
|
12
|
+
"version": "2.0.0-alpha.29",
|
|
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-alpha.
|
|
53
|
-
"extension-develop": "2.0.0-alpha.
|
|
52
|
+
"extension-create": "2.0.0-alpha.29",
|
|
53
|
+
"extension-develop": "2.0.0-alpha.29"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/jest": "^29.5.11",
|