extension 1.4.4 → 1.4.6

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/dist/cli.js +22 -21
  3. package/package.json +3 -4
package/README.md CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  > Plug-and-play, zero-config, cross-browser extension development tool.
18
18
 
19
- <img width="1440" alt="Screenshot 2024-03-25 at 13 06 15" src="https://github.com/cezaraugusto/docs.extensioncreate.com/assets/4672033/01a90694-4705-416e-898c-20bf845984e7">
19
+ <img width="1440" alt="Screenshot 2024-03-25 at 13 06 15" src="https://github.com/cezaraugusto/extension.js.org/assets/4672033/01a90694-4705-416e-898c-20bf845984e7">
20
20
 
21
21
  <hr>
22
22
 
@@ -168,7 +168,7 @@ If you want to target a specific browser, just pass the `--browser` flag to the
168
168
  extension dev --browser=all
169
169
  ```
170
170
 
171
- <img width="1440" alt="Screenshot 2024-03-25 at 13 06 15" src="https://github.com/cezaraugusto/docs.extensioncreate.com/assets/4672033/01a90694-4705-416e-898c-20bf845984e7">
171
+ <img width="1440" alt="Screenshot 2024-03-25 at 13 06 15" src="https://github.com/cezaraugusto/extension.js.org/assets/4672033/01a90694-4705-416e-898c-20bf845984e7">
172
172
 
173
173
  ## License
174
174
 
package/dist/cli.js CHANGED
@@ -46,10 +46,12 @@ async function checkUpdates(packageJson) {
46
46
  }
47
47
  }
48
48
  if (update) {
49
- console.log(`
50
- Your \u{1F9E9} ${(0, import_safe.bold)("extension-create")} version is ${(0, import_safe.red)("outdated")}.
49
+ console.log(
50
+ `
51
+ Your \u{1F9E9} ${(0, import_safe.bold)("Extension")} version is ${(0, import_safe.red)("outdated")}.
51
52
  The latest version is ${(0, import_safe.bold)(update.latest)}. Please update!
52
- `);
53
+ `
54
+ );
53
55
  }
54
56
  }
55
57
 
@@ -72,7 +74,7 @@ function noURLWithoutStart(argument) {
72
74
  The default \`create\` command does not accept URLs.
73
75
  Are you forgetting a \`start\` command? Maybe:
74
76
 
75
- npx extension-create \`start\` ${argument}
77
+ npx extension \`start\` ${argument}
76
78
  `;
77
79
  }
78
80
  function notImplemented(argument) {
@@ -82,9 +84,9 @@ function notImplemented(argument) {
82
84
  // messages/programHelp.ts
83
85
  function programHelp() {
84
86
  return `
85
- # Help center for the extension-create program
87
+ # Help center for the \u{1F9E9} Extension program
86
88
 
87
- ## Usage: \`extension-create [command] [options]\`
89
+ ## Usage: \`extension [command] [options]\`
88
90
 
89
91
  **Note:** If you are looking for a specific list of options,
90
92
  all high-level commands offer their own \`--help\` file with
@@ -92,31 +94,31 @@ information about usage and a list of command flags available.
92
94
 
93
95
  For example:
94
96
 
95
- \`extension-create create --help\`
97
+ \`extension create --help\`
96
98
  outputs information about the \`create\` command.
97
99
 
98
100
  ## Options available
99
101
 
100
- \`extension-create create <extension-name>\`
102
+ \`extension create <extension-name>\`
101
103
  Creates a new extension from template. The "create" command
102
104
  is optional and can be ommitted.
103
105
 
104
- \`extension-create dev <extension-path>\`
106
+ \`extension dev <extension-path>\`
105
107
  Starts a new browser instance in development mode, with the target
106
108
  extension loaded and auto-reloaded based on file changes.
107
109
 
108
- \`extension-create start <extension-path>\`
110
+ \`extension start <extension-path>\`
109
111
  Starts a new browser instance in production mode, with the target
110
112
  extension compiled based on the browser choice.
111
113
 
112
- \`extension-create build <extension-path>\`
114
+ \`extension build <extension-path>\`
113
115
  Builds the target extension with browser defaults, ready for packaging.
114
116
 
115
- \`extension-create --help\`
117
+ \`extension --help\`
116
118
  This command ;) Outputs a help file with key command options.
117
119
 
118
120
  Feels something is wrong? Help by reporting a bug:
119
- https://github.com/cezaraugusto/extension-create/issues/new
121
+ https://github.com/cezaraugusto/extension/issues/new
120
122
  `;
121
123
  }
122
124
 
@@ -132,14 +134,14 @@ var package_default = {
132
134
  license: "MIT",
133
135
  repository: {
134
136
  type: "git",
135
- url: "https://github.com/cezaraugusto/extension-create.git",
137
+ url: "https://github.com/cezaraugusto/extension.git",
136
138
  directory: "programs/cli"
137
139
  },
138
140
  engines: {
139
141
  node: ">=18"
140
142
  },
141
143
  name: "extension",
142
- version: "1.4.4",
144
+ version: "1.4.6",
143
145
  description: "Create cross-browser extensions with no build configuration.",
144
146
  main: "./dist/cli.js",
145
147
  types: "./dist/cli.d.ts",
@@ -148,8 +150,7 @@ var package_default = {
148
150
  "README.md"
149
151
  ],
150
152
  bin: {
151
- extension: "./dist/cli.js",
152
- "extension-create": "./dist/cli.js"
153
+ extension: "./dist/cli.js"
153
154
  },
154
155
  author: {
155
156
  name: "Cezar Augusto",
@@ -209,11 +210,11 @@ if (import_semver.default.lte(process.version, "18.0.0")) {
209
210
  var extensionCreate = import_commander.program;
210
211
  var isExtensionCreateNamespace = package_default.name !== "extension";
211
212
  if (process.env.EXTENSION_ENV === "development") {
212
- console.log(`Running extension-create via ${package_default.name}...`);
213
+ console.log(`Running extension via ${package_default.name}...`);
213
214
  }
214
215
  extensionCreate.name(package_default.name).description(package_default.description).version(package_default.version).addHelpText("after", messages_default.programHelp());
215
216
  var vendors = (browser) => browser === "all" ? "chrome,edge".split(",") : browser.split(",");
216
- extensionCreate.command("create", { isDefault: isExtensionCreateNamespace }).arguments("<project-name|project-path>").usage("create <project-name|project-path> [options]").description("Creates a new extension.").option(
217
+ extensionCreate.command("create").arguments("<project-name|project-path>").usage("create <project-name|project-path> [options]").description("Creates a new extension.").option(
217
218
  "-t, --template <template-name>",
218
219
  "specify a template for the created project"
219
220
  ).action(async function(pathOrRemoteUrl, {
@@ -264,7 +265,7 @@ extensionCreate.command("dev").arguments("[project-path|remote-url]").usage("dev
264
265
  "whether or not to apply the cross-browser polyfill. Defaults to `true`"
265
266
  ).option(
266
267
  "-p, --port <number>",
267
- "what port should extension-create/develop run. Defaults to `3000`"
268
+ "what port should Extension run. Defaults to `3000`"
268
269
  ).action(async function(pathOrRemoteUrl, { browser = "chrome", ...devOptions }) {
269
270
  for (const vendor of vendors(browser)) {
270
271
  await (0, import_develop.extensionDev)(pathOrRemoteUrl, {
@@ -285,7 +286,7 @@ extensionCreate.command("start").arguments("[project-path|remote-url]").usage("s
285
286
  "whether or not to apply the cross-browser polyfill. Defaults to `true`"
286
287
  ).option(
287
288
  "-p, --port <number>",
288
- "what port should extension-create/develop run. Defaults to `3000`"
289
+ "what port should Extension run. Defaults to `3000`"
289
290
  ).action(async function(pathOrRemoteUrl, { browser = "chrome", ...startOptions }) {
290
291
  for (const vendor of vendors(browser)) {
291
292
  await (0, import_develop.extensionStart)(pathOrRemoteUrl, {
package/package.json CHANGED
@@ -2,14 +2,14 @@
2
2
  "license": "MIT",
3
3
  "repository": {
4
4
  "type": "git",
5
- "url": "https://github.com/cezaraugusto/extension-create.git",
5
+ "url": "https://github.com/cezaraugusto/extension.git",
6
6
  "directory": "programs/cli"
7
7
  },
8
8
  "engines": {
9
9
  "node": ">=18"
10
10
  },
11
11
  "name": "extension",
12
- "version": "1.4.4",
12
+ "version": "1.4.6",
13
13
  "description": "Create cross-browser extensions with no build configuration.",
14
14
  "main": "./dist/cli.js",
15
15
  "types": "./dist/cli.d.ts",
@@ -18,8 +18,7 @@
18
18
  "README.md"
19
19
  ],
20
20
  "bin": {
21
- "extension": "./dist/cli.js",
22
- "extension-create": "./dist/cli.js"
21
+ "extension": "./dist/cli.js"
23
22
  },
24
23
  "author": {
25
24
  "name": "Cezar Augusto",