@oclif/plugin-test-esbuild 0.1.7 → 0.2.0

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 CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @oclif/plugin-test-esbuild
18
18
  $ bundle COMMAND
19
19
  running command...
20
20
  $ bundle (--version)
21
- @oclif/plugin-test-esbuild/0.1.7 linux-x64 node-v20.11.0
21
+ @oclif/plugin-test-esbuild/0.2.0 linux-x64 node-v20.11.0
22
22
  $ bundle --help [COMMAND]
23
23
  USAGE
24
24
  $ bundle COMMAND
@@ -27,6 +27,7 @@ USAGE
27
27
  <!-- usagestop -->
28
28
  # Commands
29
29
  <!-- commands -->
30
+ * [`bundle esbuild [DEFAULTARG] [DEFAULTFNARG] [OPTIONALARG]`](#bundle-esbuild-defaultarg-defaultfnarg-optionalarg)
30
31
  * [`bundle hello PERSON`](#bundle-hello-person)
31
32
  * [`bundle hello alias`](#bundle-hello-alias)
32
33
  * [`bundle hello world`](#bundle-hello-world)
@@ -42,6 +43,22 @@ USAGE
42
43
  * [`bundle plugins:uninstall PLUGIN...`](#bundle-pluginsuninstall-plugin-2)
43
44
  * [`bundle plugins update`](#bundle-plugins-update)
44
45
 
46
+ ## `bundle esbuild [DEFAULTARG] [DEFAULTFNARG] [OPTIONALARG]`
47
+
48
+ ```
49
+ USAGE
50
+ $ bundle esbuild [DEFAULTARG] [DEFAULTFNARG] [OPTIONALARG] [--json] [--defaultFnString <value>]
51
+ [--defaultString <value>] [--optionalString <value>]
52
+
53
+ FLAGS
54
+ --defaultFnString=<value> [default: async fn default]
55
+ --defaultString=<value> [default: simple string default]
56
+ --optionalString=<value>
57
+
58
+ GLOBAL FLAGS
59
+ --json Format output as json.
60
+ ```
61
+
45
62
  ## `bundle hello PERSON`
46
63
 
47
64
  Say hello
package/dist/index.js CHANGED
@@ -220797,7 +220797,7 @@ var require_cli_ux = __commonJS({
220797
220797
  var wait_1 = __importDefault(require_wait());
220798
220798
  var write_1 = __importDefault(require_write());
220799
220799
  var hyperlinker = require_hyperlinker();
220800
- var ux = class {
220800
+ var ux2 = class {
220801
220801
  static config = config_1.config;
220802
220802
  static get action() {
220803
220803
  return config_1.config.action;
@@ -220884,8 +220884,8 @@ var require_cli_ux = __commonJS({
220884
220884
  return wait_1.default;
220885
220885
  }
220886
220886
  };
220887
- exports2.ux = ux;
220888
- var { action, annotation, anykey, confirm, debug, done, flush, info, log, logToStderr, progress, prompt, styledHeader, styledJSON, styledObject, table, trace, tree, url, wait } = ux;
220887
+ exports2.ux = ux2;
220888
+ var { action, annotation, anykey, confirm, debug, done, flush, info, log, logToStderr, progress, prompt, styledHeader, styledJSON, styledObject, table, trace, tree, url, wait } = ux2;
220889
220889
  exports2.action = action;
220890
220890
  exports2.annotation = annotation;
220891
220891
  exports2.anykey = anykey;
@@ -220912,7 +220912,7 @@ var require_cli_ux = __commonJS({
220912
220912
  exports2.warn = warn;
220913
220913
  var uxProcessExitHandler = async () => {
220914
220914
  try {
220915
- await ux.done();
220915
+ await ux2.done();
220916
220916
  } catch (error2) {
220917
220917
  console.error(error2);
220918
220918
  process.exitCode = 1;
@@ -230055,7 +230055,7 @@ var require_command2 = __commonJS({
230055
230055
  return;
230056
230056
  throw err;
230057
230057
  });
230058
- var Command3 = class {
230058
+ var Command4 = class {
230059
230059
  argv;
230060
230060
  config;
230061
230061
  /** An array of aliases for this command. */
@@ -230318,7 +230318,7 @@ var require_command2 = __commonJS({
230318
230318
  keys.map((key) => delete process.env[key]);
230319
230319
  }
230320
230320
  };
230321
- exports2.Command = Command3;
230321
+ exports2.Command = Command4;
230322
230322
  }
230323
230323
  });
230324
230324
 
@@ -230572,11 +230572,40 @@ __export(src_exports, {
230572
230572
  });
230573
230573
  module.exports = __toCommonJS(src_exports);
230574
230574
 
230575
- // src/commands/hello/index.ts
230575
+ // src/commands/esbuild.ts
230576
230576
  var import_core = __toESM(require_lib2());
230577
- var Hello = class _Hello extends import_core.Command {
230577
+ var ESBuild = class _ESBuild extends import_core.Command {
230578
230578
  static args = {
230579
- person: import_core.Args.string({ description: "Person to say hello to", required: true })
230579
+ defaultArg: import_core.Args.string({
230580
+ default: "simple string default"
230581
+ }),
230582
+ defaultFnArg: import_core.Args.string({
230583
+ default: async () => "async fn default"
230584
+ }),
230585
+ optionalArg: import_core.Args.string()
230586
+ };
230587
+ static enableJsonFlag = true;
230588
+ static flags = {
230589
+ defaultFnString: import_core.Flags.string({
230590
+ default: async () => "async fn default"
230591
+ }),
230592
+ defaultString: import_core.Flags.string({
230593
+ default: "simple string default"
230594
+ }),
230595
+ optionalString: import_core.Flags.string()
230596
+ };
230597
+ async run() {
230598
+ const { args, flags } = await this.parse(_ESBuild);
230599
+ this.log(`hello I am a bundled (esbuild) plugin from ${this.config.root}!`);
230600
+ return { args, flags };
230601
+ }
230602
+ };
230603
+
230604
+ // src/commands/hello/index.ts
230605
+ var import_core2 = __toESM(require_lib2());
230606
+ var Hello = class _Hello extends import_core2.Command {
230607
+ static args = {
230608
+ person: import_core2.Args.string({ description: "Person to say hello to", required: true })
230580
230609
  };
230581
230610
  static description = "Say hello";
230582
230611
  static examples = [
@@ -230585,7 +230614,7 @@ hello friend from oclif! (./src/commands/hello/index.ts)
230585
230614
  `
230586
230615
  ];
230587
230616
  static flags = {
230588
- from: import_core.Flags.string({ char: "f", description: "Who is saying hello", required: true })
230617
+ from: import_core2.Flags.string({ char: "f", description: "Who is saying hello", required: true })
230589
230618
  };
230590
230619
  async run() {
230591
230620
  const { args, flags } = await this.parse(_Hello);
@@ -230594,8 +230623,8 @@ hello friend from oclif! (./src/commands/hello/index.ts)
230594
230623
  };
230595
230624
 
230596
230625
  // src/commands/hello/world.ts
230597
- var import_core2 = __toESM(require_lib2());
230598
- var World = class extends import_core2.Command {
230626
+ var import_core3 = __toESM(require_lib2());
230627
+ var World = class extends import_core3.Command {
230599
230628
  static args = {};
230600
230629
  static description = "Say hello world";
230601
230630
  static examples = [
@@ -230610,14 +230639,15 @@ hello world! (./src/commands/hello/world.ts)
230610
230639
  };
230611
230640
 
230612
230641
  // src/hooks/init/init.ts
230613
- var hook = async function(opts) {
230614
- process.stdout.write(`example hook running ${opts.id}
230615
- `);
230642
+ var import_core4 = __toESM(require_lib2());
230643
+ var hook = async function() {
230644
+ import_core4.ux.log("Greetings! from plugin-test-esbuild init hook");
230616
230645
  };
230617
230646
  var init_default = hook;
230618
230647
 
230619
230648
  // src/index.ts
230620
230649
  var COMMANDS = {
230650
+ esbuild: ESBuild,
230621
230651
  hello: Hello,
230622
230652
  "hello:alias": World,
230623
230653
  "hello:world": World
@@ -1,5 +1,58 @@
1
1
  {
2
2
  "commands": {
3
+ "esbuild": {
4
+ "aliases": [],
5
+ "args": {
6
+ "defaultArg": {
7
+ "default": "simple string default",
8
+ "name": "defaultArg"
9
+ },
10
+ "defaultFnArg": {
11
+ "default": "async fn default",
12
+ "name": "defaultFnArg"
13
+ },
14
+ "optionalArg": {
15
+ "name": "optionalArg"
16
+ }
17
+ },
18
+ "flags": {
19
+ "json": {
20
+ "description": "Format output as json.",
21
+ "helpGroup": "GLOBAL",
22
+ "name": "json",
23
+ "allowNo": false,
24
+ "type": "boolean"
25
+ },
26
+ "defaultFnString": {
27
+ "name": "defaultFnString",
28
+ "default": "async fn default",
29
+ "hasDynamicHelp": false,
30
+ "multiple": false,
31
+ "type": "option"
32
+ },
33
+ "defaultString": {
34
+ "name": "defaultString",
35
+ "default": "simple string default",
36
+ "hasDynamicHelp": false,
37
+ "multiple": false,
38
+ "type": "option"
39
+ },
40
+ "optionalString": {
41
+ "name": "optionalString",
42
+ "hasDynamicHelp": false,
43
+ "multiple": false,
44
+ "type": "option"
45
+ }
46
+ },
47
+ "hasDynamicHelp": false,
48
+ "hiddenAliases": [],
49
+ "id": "esbuild",
50
+ "pluginAlias": "@oclif/plugin-test-esbuild",
51
+ "pluginName": "@oclif/plugin-test-esbuild",
52
+ "pluginType": "core",
53
+ "strict": true,
54
+ "enableJsonFlag": true
55
+ },
3
56
  "hello": {
4
57
  "aliases": [],
5
58
  "args": {
@@ -68,5 +121,5 @@
68
121
  "enableJsonFlag": false
69
122
  }
70
123
  },
71
- "version": "0.1.7"
124
+ "version": "0.2.0"
72
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",