electron-reactive-event-cli 1.0.118 → 1.0.120

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 (95) hide show
  1. package/ReadMe.md +3 -10
  2. package/package.json +7 -26
  3. package/Distribution/All.Command.d.ts +0 -2
  4. package/Distribution/All.Command.d.ts.map +0 -1
  5. package/Distribution/All.Command.js +0 -22
  6. package/Distribution/All.Command.js.map +0 -1
  7. package/Distribution/Bin.d.ts +0 -3
  8. package/Distribution/Bin.d.ts.map +0 -1
  9. package/Distribution/Bin.js +0 -86
  10. package/Distribution/Bin.js.map +0 -1
  11. package/Distribution/Command.d.ts +0 -12
  12. package/Distribution/Command.d.ts.map +0 -1
  13. package/Distribution/Command.js +0 -100
  14. package/Distribution/Command.js.map +0 -1
  15. package/Distribution/Config.Types.d.ts +0 -36
  16. package/Distribution/Config.Types.d.ts.map +0 -1
  17. package/Distribution/Config.Types.js +0 -8
  18. package/Distribution/Config.Types.js.map +0 -1
  19. package/Distribution/Config.d.ts +0 -28
  20. package/Distribution/Config.d.ts.map +0 -1
  21. package/Distribution/Config.js +0 -161
  22. package/Distribution/Config.js.map +0 -1
  23. package/Distribution/DeclareEvents.Command.d.ts +0 -2
  24. package/Distribution/DeclareEvents.Command.d.ts.map +0 -1
  25. package/Distribution/DeclareEvents.Command.js +0 -16
  26. package/Distribution/DeclareEvents.Command.js.map +0 -1
  27. package/Distribution/DeclareEvents.Types.d.ts +0 -11
  28. package/Distribution/DeclareEvents.Types.d.ts.map +0 -1
  29. package/Distribution/DeclareEvents.Types.js +0 -8
  30. package/Distribution/DeclareEvents.Types.js.map +0 -1
  31. package/Distribution/DeclareEvents.d.ts +0 -3
  32. package/Distribution/DeclareEvents.d.ts.map +0 -1
  33. package/Distribution/DeclareEvents.js +0 -213
  34. package/Distribution/DeclareEvents.js.map +0 -1
  35. package/Distribution/Docs.Command.d.ts +0 -3
  36. package/Distribution/Docs.Command.d.ts.map +0 -1
  37. package/Distribution/Docs.Command.js +0 -19
  38. package/Distribution/Docs.Command.js.map +0 -1
  39. package/Distribution/DownloadSample.Command.d.ts +0 -3
  40. package/Distribution/DownloadSample.Command.d.ts.map +0 -1
  41. package/Distribution/DownloadSample.Command.js +0 -107
  42. package/Distribution/DownloadSample.Command.js.map +0 -1
  43. package/Distribution/Generate.Command.d.ts +0 -5
  44. package/Distribution/Generate.Command.d.ts.map +0 -1
  45. package/Distribution/Generate.Command.js +0 -20
  46. package/Distribution/Generate.Command.js.map +0 -1
  47. package/Distribution/GenerateIpc.Command.d.ts +0 -3
  48. package/Distribution/GenerateIpc.Command.d.ts.map +0 -1
  49. package/Distribution/GenerateIpc.Command.js +0 -22
  50. package/Distribution/GenerateIpc.Command.js.map +0 -1
  51. package/Distribution/GenerateIpcMainModule.d.ts +0 -3
  52. package/Distribution/GenerateIpcMainModule.d.ts.map +0 -1
  53. package/Distribution/GenerateIpcMainModule.js +0 -37
  54. package/Distribution/GenerateIpcMainModule.js.map +0 -1
  55. package/Distribution/GenerateIpcRendererModule.d.ts +0 -5
  56. package/Distribution/GenerateIpcRendererModule.d.ts.map +0 -1
  57. package/Distribution/GenerateIpcRendererModule.js +0 -73
  58. package/Distribution/GenerateIpcRendererModule.js.map +0 -1
  59. package/Distribution/GenerateScopedTypes.Command.d.ts +0 -3
  60. package/Distribution/GenerateScopedTypes.Command.d.ts.map +0 -1
  61. package/Distribution/GenerateScopedTypes.Command.js +0 -44
  62. package/Distribution/GenerateScopedTypes.Command.js.map +0 -1
  63. package/Distribution/GenerateScopedTypes.Types.d.ts +0 -25
  64. package/Distribution/GenerateScopedTypes.Types.d.ts.map +0 -1
  65. package/Distribution/GenerateScopedTypes.Types.js +0 -8
  66. package/Distribution/GenerateScopedTypes.Types.js.map +0 -1
  67. package/Distribution/GenerateScopedTypes.d.ts +0 -9
  68. package/Distribution/GenerateScopedTypes.d.ts.map +0 -1
  69. package/Distribution/GenerateScopedTypes.js +0 -228
  70. package/Distribution/GenerateScopedTypes.js.map +0 -1
  71. package/Distribution/Setup.Command.d.ts +0 -3
  72. package/Distribution/Setup.Command.d.ts.map +0 -1
  73. package/Distribution/Setup.Command.js +0 -11
  74. package/Distribution/Setup.Command.js.map +0 -1
  75. package/Distribution/Setup.d.ts +0 -2
  76. package/Distribution/Setup.d.ts.map +0 -1
  77. package/Distribution/Setup.js +0 -184
  78. package/Distribution/Setup.js.map +0 -1
  79. package/Distribution/Shared.Types.d.ts +0 -6
  80. package/Distribution/Shared.Types.d.ts.map +0 -1
  81. package/Distribution/Shared.Types.js +0 -8
  82. package/Distribution/Shared.Types.js.map +0 -1
  83. package/Distribution/Shared.d.ts +0 -24
  84. package/Distribution/Shared.d.ts.map +0 -1
  85. package/Distribution/Shared.js +0 -66
  86. package/Distribution/Shared.js.map +0 -1
  87. package/Distribution/WriteTypesToClipboard.d.ts +0 -2
  88. package/Distribution/WriteTypesToClipboard.d.ts.map +0 -1
  89. package/Distribution/WriteTypesToClipboard.js +0 -193
  90. package/Distribution/WriteTypesToClipboard.js.map +0 -1
  91. package/Distribution/index.d.ts +0 -4
  92. package/Distribution/index.d.ts.map +0 -1
  93. package/Distribution/index.js +0 -25
  94. package/Distribution/index.js.map +0 -1
  95. package/License.md +0 -21
package/ReadMe.md CHANGED
@@ -1,10 +1,3 @@
1
- *Copyright © 2026 Gage Sorrell. Released under the [MIT license](./License.md).*
2
-
3
- # `electron-reactive-event-cli`
4
-
5
- This is the CLI that accompanies [`electron-reactive-event`](https://www.npmjs.com/package/electron-reactive-event).
6
- It generates module augmentation code for you.
7
-
8
- Also see the [Electron Reactive Event extension](https://github.com/GageSorrell/ElectronReactiveEventCodeExtension) for VS Code, which runs the CLI for you upon saving files.
9
-
10
- For more details about [`electron-reactive-event`, please see the GitHub repo here](https://github.com/GageSorrell/ElectronReactiveEvent).
1
+ # `electron-reactive-event-cli`
2
+
3
+ **Migrated.** This package has been renamed to [`reactive-event-cli`](https://www.npmjs.com/package/reactive-event-cli).
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "electron-reactive-event-cli",
3
- "version": "1.0.118",
3
+ "version": "1.0.120",
4
4
  "description": "The CLI for electron-reactive-event.",
5
5
  "bin": {
6
- "electron-reactive-event-cli": "./Distribution/Bin.js",
7
- "electron-reactive-event-cli-setup": "./Distribution/Setup.Command.js",
6
+ "reactive-event-cli": "./Distribution/Bin.js",
7
+ "reactive-event-cli-setup": "./Distribution/Setup.Command.js",
8
8
  "reactive-cli": "./Distribution/Bin.js"
9
9
  },
10
10
  "files": [
11
11
  "./package.json",
12
- "./ReadMe.md",
13
- "./Distribution/**/*"
12
+ "./ReadMe.md"
14
13
  ],
15
14
  "keywords": [
16
15
  "CLI",
@@ -20,12 +19,12 @@
20
19
  "react",
21
20
  "typescript"
22
21
  ],
23
- "homepage": "https://electron-reactive-event.sorrell.sh",
22
+ "homepage": "https://reactive-event.sorrell.sh",
24
23
  "bugs": {
25
24
  "url": "https://github.com/GageSorrell/SorrellWm/issues"
26
25
  },
27
26
  "repository": {
28
- "directory": "Package/ElectronReactiveEventCli",
27
+ "directory": "Package/ReactiveEventCli",
29
28
  "type": "git",
30
29
  "url": "git+https://github.com/GageSorrell/SorrellWm.git"
31
30
  },
@@ -36,31 +35,13 @@
36
35
  "url": "https://sorrell.sh"
37
36
  },
38
37
  "type": "commonjs",
39
- "exports": {
40
- ".": "./Distribution/index.js"
41
- },
42
- "types": "./Distribution/index.d.ts",
43
- "main": "index.js",
44
38
  "scripts": {
45
39
  "build": "tsc -p ./tsconfig.json",
46
40
  "get-types": "npm run build && node ./Distribution/WriteTypesToClipboard.js",
47
- "generate-schema": "npx typescript-json-schema ./tsconfig.JsonSchema.json CliConfigSchema --out ../ElectronReactiveEvent/Documentation/public/CliConfig.Schema.json"
41
+ "generate-schema": "npx typescript-json-schema ./tsconfig.JsonSchema.json CliConfigSchema --out ../ReactiveEvent/Documentation/public/CliConfig.Schema.json"
48
42
  },
49
43
  "dependencies": {
50
- "@listr2/prompt-adapter-enquirer": "^4.2.1",
51
- "@sorrell/cli-utilities": "^1.0.43",
52
- "@sorrell/utilities": "^1.2.4",
53
- "chalk": "^5.6.2",
54
- "degit": "^2.8.4",
55
- "listr2": "^10.2.1",
56
- "open": "^11.0.0",
57
- "ora": "^9.3.0",
58
- "simple-git": "^3.36.0",
59
- "typescript": "npm:tsover@^6.0.0"
60
44
  },
61
45
  "devDependencies": {
62
- "@types/degit": "^2.8.6",
63
- "@types/node": "^24.12.2",
64
- "package-json-type": "^1.1.2"
65
46
  }
66
47
  }
@@ -1,2 +0,0 @@
1
- export declare function AllCommand(): Promise<void>;
2
- //# sourceMappingURL=All.Command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"All.Command.d.ts","sourceRoot":"","sources":["../Source/All.Command.ts"],"names":[],"mappings":"AAcA,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAQhD"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- /* File: All.ts
3
- * Author: Gage Sorrell <gage@sorrell.sh>
4
- * Copyright: (c) 2026 Gage Sorrell
5
- * License: MIT
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.AllCommand = AllCommand;
9
- /* eslint-disable jsdoc/require-jsdoc */
10
- const DeclareEvents_1 = require("./DeclareEvents");
11
- const GenerateIpcMainModule_1 = require("./GenerateIpcMainModule");
12
- const GenerateIpcRendererModule_1 = require("./GenerateIpcRendererModule");
13
- const GenerateScopedTypes_Command_1 = require("./GenerateScopedTypes.Command");
14
- const Command_1 = require("./Command");
15
- async function AllCommand() {
16
- (0, Command_1.SetCommand)("all");
17
- await (0, GenerateScopedTypes_Command_1.GenerateScopedTypes)();
18
- await (0, DeclareEvents_1.DeclareEvents)();
19
- await (0, GenerateIpcMainModule_1.GenerateIpcMainModule)();
20
- await (0, GenerateIpcRendererModule_1.GenerateIpcRendererModule)();
21
- }
22
- //# sourceMappingURL=All.Command.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"All.Command.js","sourceRoot":"","sources":["../Source/All.Command.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAUH,gCAQC;AAhBD,wCAAwC;AAExC,mDAAgD;AAChD,mEAAgE;AAChE,2EAAwE;AACxE,+EAAoE;AACpE,uCAAuC;AAEhC,KAAK,UAAU,UAAU;IAE5B,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC;IAElB,MAAM,IAAA,iDAAmB,GAAE,CAAC;IAC5B,MAAM,IAAA,6BAAa,GAAE,CAAC;IACtB,MAAM,IAAA,6CAAqB,GAAE,CAAC;IAC9B,MAAM,IAAA,qDAAyB,GAAE,CAAC;AACtC,CAAC"}
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=Bin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Bin.d.ts","sourceRoot":"","sources":["../Source/Bin.ts"],"names":[],"mappings":""}
@@ -1,86 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- /* File: Bin.ts
4
- * Author: Gage Sorrell <gage@sorrell.sh>
5
- * Copyright: (c) 2026 Gage Sorrell
6
- * License: MIT
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- /* eslint-disable jsdoc/require-jsdoc, no-console */
10
- const All_Command_1 = require("./All.Command");
11
- const DeclareEvents_Command_1 = require("./DeclareEvents.Command");
12
- const Docs_Command_1 = require("./Docs.Command");
13
- const DownloadSample_Command_1 = require("./DownloadSample.Command");
14
- const Generate_Command_1 = require("./Generate.Command");
15
- const GenerateIpc_Command_1 = require("./GenerateIpc.Command");
16
- const GenerateIpcMainModule_1 = require("./GenerateIpcMainModule");
17
- const GenerateIpcRendererModule_1 = require("./GenerateIpcRendererModule");
18
- const GenerateScopedTypes_Command_1 = require("./GenerateScopedTypes.Command");
19
- const utilities_1 = require("@sorrell/utilities");
20
- const Setup_1 = require("./Setup");
21
- const promises_1 = require("fs/promises");
22
- const path_1 = require("path");
23
- async function ShowHelp() {
24
- const Root = await (0, utilities_1.GetPackageRootDirectory)();
25
- const PackageJson = JSON.parse(await (0, promises_1.readFile)((0, path_1.resolve)(Root, "package.json"), { encoding: "utf-8" }));
26
- const Version = PackageJson.version;
27
- /* eslint-disable @stylistic/max-len */
28
- console.log(`electron-reactive-event-cli v${Version}.\nCopyright 2026 Gage Sorrell.\nReleased under the MIT license.\n
29
- Commands (Core):
30
-
31
- all: Performs everything below but setup.
32
- declare-events: Generates a module that augments the Registrar with your event declarations.
33
- generate: Runs all generate-* commands.
34
- generate-scoped-types: Generates copies of the types exported by electron-reactive-event/scoped, but scoped to your PackageKey.
35
- generate-types: Alias for generate-scoped-types.
36
- generate-ipc main: Generates a module that exports reactive IPC functions for main.
37
- generate-ipc renderer: Generates a module that exports reactive IPC functions for the renderer.,
38
- generate-ipc: Generates IPC modules for main and renderer.
39
- set-up: Creates a config file. This is necessary for using the CLI.
40
- setup: Alias for set-up.
41
-
42
- Commands (Miscellaneous):
43
- docs: Opens the documentation reference in the default browser.
44
- download-sample: Downloads the sample project to the current directory.
45
- help: Outputs this text.
46
- `);
47
- /* eslint-enable @stylistic/max-len */
48
- }
49
- async function Main() {
50
- const Commands = {
51
- all: All_Command_1.AllCommand,
52
- docs: Docs_Command_1.DocsCommand,
53
- "download-sample": DownloadSample_Command_1.DownloadSampleCommand,
54
- "declare-events": DeclareEvents_Command_1.DeclareEventsCommand,
55
- generate: Generate_Command_1.GenerateCommand,
56
- "generate-scoped-types": GenerateScopedTypes_Command_1.GenerateScopedTypesCommand,
57
- "generate-types": GenerateScopedTypes_Command_1.GenerateScopedTypesCommand,
58
- "generate-ipc": GenerateIpc_Command_1.GenerateIpcCommand,
59
- "generate-ipc main": GenerateIpcMainModule_1.GenerateIpcMainModuleCommand,
60
- "generate-ipc renderer": GenerateIpcRendererModule_1.GenerateIpcRendererModuleCommand,
61
- "set-up": Setup_1.SetupCommand,
62
- setup: Setup_1.SetupCommand
63
- };
64
- const Command = process.argv[process.argv.length - 1];
65
- if (["main", "renderer"].includes(Command)) {
66
- const CommandWithArgument = process.argv.slice(-2).join(" ");
67
- if (CommandWithArgument in Commands && Commands[CommandWithArgument] !== undefined) {
68
- await Commands[CommandWithArgument]();
69
- process.exit(0);
70
- }
71
- else {
72
- await ShowHelp();
73
- process.exit(1);
74
- }
75
- }
76
- else if (Command in Commands && Commands[Command] !== undefined) {
77
- await Commands[Command]();
78
- process.exit(0);
79
- }
80
- else {
81
- await ShowHelp();
82
- process.exit(1);
83
- }
84
- }
85
- Main();
86
- //# sourceMappingURL=Bin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Bin.js","sourceRoot":"","sources":["../Source/Bin.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;;AAEH,oDAAoD;AAEpD,+CAA2C;AAC3C,mEAA+D;AAC/D,iDAA6C;AAC7C,qEAAiE;AACjE,yDAAqD;AACrD,+DAA2D;AAC3D,mEAAuE;AACvE,2EAA+E;AAC/E,+EAA2E;AAC3E,kDAA6D;AAC7D,mCAAuC;AACvC,0CAAuC;AACvC,+BAA+B;AAE/B,KAAK,UAAU,QAAQ;IAGnB,MAAM,IAAI,GAAW,MAAM,IAAA,mCAAuB,GAAE,CAAC;IACrD,MAAM,WAAW,GACb,IAAI,CAAC,KAAK,CAAC,MAAM,IAAA,mBAAQ,EAAC,IAAA,cAAO,EAAC,IAAI,EAAE,cAAc,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAgB,CAAC;IAEpG,MAAM,OAAO,GAAW,WAAW,CAAC,OAAO,CAAC;IAC5C,uCAAuC;IACvC,OAAO,CAAC,GAAG,CAAC,gCAAiC,OAAQ;;;;;;;;;;;;;;;;;;CAkBxD,CAAC,CAAC;IACC,sCAAsC;AAC1C,CAAC;AAED,KAAK,UAAU,IAAI;IAGf,MAAM,QAAQ,GACV;QACI,GAAG,EAAE,wBAAU;QAEf,IAAI,EAAE,0BAAW;QAEjB,iBAAiB,EAAE,8CAAqB;QAEx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1
- export declare function GetCommand(): string;
2
- export declare function GetHeader(FileName: string, PrincipalCommand: string): string;
3
- export declare class TryError extends Error {
4
- constructor(Result: string | undefined, OriginalError?: unknown);
5
- TheResult: string | undefined;
6
- TheOriginalError: Error | undefined;
7
- }
8
- export declare function SetCommand(CommandName: string): void;
9
- export declare function Try(Label: string, SuccessLabel: ((Result: string) => string), Function: (() => Promise<string>)): Promise<string>;
10
- export declare function Try<Type>(Label: string, SuccessLabel: string, Function: (() => Promise<Type>)): Promise<Type>;
11
- export declare function Try<Type>(Label: string, SuccessLabel: ((Result: string) => string), Function: (() => Promise<Type>)): Promise<Type>;
12
- //# sourceMappingURL=Command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../Source/Command.ts"],"names":[],"mappings":"AAaA,wBAAgB,UAAU,IAAI,MAAM,CAGnC;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAgB5E;AAED,qBAAa,QAAS,SAAQ,KAAK;gBAEZ,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,aAAa,CAAC,EAAE,OAAO;IAY/D,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B,gBAAgB,EAAE,KAAK,GAAG,SAAS,CAAC;CAC9C;AAED,wBAAgB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAGpD;AAED,wBAAsB,GAAG,CACrB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,EAC1C,QAAQ,EAAE,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAClC,OAAO,CAAC,MAAM,CAAC,CAAC;AACnB,wBAAsB,GAAG,CAAC,IAAI,EAC1B,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAChC,OAAO,CAAC,IAAI,CAAC,CAAC;AACjB,wBAAsB,GAAG,CAAC,IAAI,EAC1B,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,EAC1C,QAAQ,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAChC,OAAO,CAAC,IAAI,CAAC,CAAC"}
@@ -1,100 +0,0 @@
1
- "use strict";
2
- /* File: Command.ts
3
- * Author: Gage Sorrell <gage@sorrell.sh>
4
- * Copyright: (c) 2026 Gage Sorrell
5
- * License: MIT
6
- */
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.TryError = void 0;
12
- exports.GetCommand = GetCommand;
13
- exports.GetHeader = GetHeader;
14
- exports.SetCommand = SetCommand;
15
- exports.Try = Try;
16
- const ora_1 = __importDefault(require("ora"));
17
- let Command = "generate";
18
- function GetCommand() {
19
- return Command;
20
- }
21
- function GetHeader(FileName, PrincipalCommand) {
22
- return `/**
23
- * File: ${FileName}
24
- * Author: \`electron-reactive-event-cli\`
25
- *
26
- * ********************************************
27
- *
28
- * Generated with the ${GetCommand()} command.
29
- * Regenerate this file by running,
30
- *
31
- * \`npm exec electron-reactive-event ${PrincipalCommand}\`
32
- *
33
- * in this directory.
34
- *
35
- */\n\n/* eslint-disable */\n`;
36
- }
37
- class TryError extends Error {
38
- constructor(Result, OriginalError) {
39
- super();
40
- this.TheResult = Result;
41
- if (OriginalError !== undefined && OriginalError instanceof Error) {
42
- this.TheOriginalError = OriginalError;
43
- }
44
- }
45
- TheResult;
46
- TheOriginalError;
47
- }
48
- exports.TryError = TryError;
49
- ;
50
- function SetCommand(CommandName) {
51
- Command = CommandName;
52
- }
53
- async function Try(Label, SuccessLabel, Function) {
54
- const OraSpinner = (0, ora_1.default)({
55
- spinner: "point",
56
- text: Label
57
- }).start();
58
- try {
59
- const Result = await Function();
60
- if (typeof SuccessLabel === "function") {
61
- if (typeof Result === "string") {
62
- OraSpinner.succeed(SuccessLabel(Result));
63
- }
64
- else {
65
- /* eslint-disable-next-line @stylistic/max-len */
66
- throw new Error("Try was given a SuccessLabel function, but the result type was not a string!");
67
- }
68
- }
69
- else {
70
- OraSpinner.succeed(SuccessLabel);
71
- }
72
- return Result;
73
- }
74
- catch (Error) {
75
- OraSpinner.fail();
76
- if (Error instanceof TryError) {
77
- if (Error.TheResult !== undefined) {
78
- if (Error.TheOriginalError !== undefined) {
79
- console.error(Error.TheOriginalError, `\n\n🚨 ${Error.TheResult} The error is printed above.`);
80
- }
81
- else {
82
- console.error(`\n\n🚨 ${Error.TheResult}`);
83
- }
84
- }
85
- else {
86
- if (Error.TheOriginalError !== undefined) {
87
- console.error(Error.TheOriginalError, `\n\n🚨 The ${GetCommand()} command failed. The error is printed above.`);
88
- }
89
- else {
90
- console.error(`\n\n🚨 The ${GetCommand()} command failed.`);
91
- }
92
- }
93
- }
94
- else {
95
- console.error(Error, `\n\n🚨 The ${GetCommand()} command failed. The error is printed above.`);
96
- }
97
- process.exit(1);
98
- }
99
- }
100
- //# sourceMappingURL=Command.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Command.js","sourceRoot":"","sources":["../Source/Command.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AASH,gCAGC;AAED,8BAgBC;AAqBD,gCAGC;AAiBD,kBA4EC;AA9ID,8CAAsB;AAEtB,IAAI,OAAO,GAAW,UAAU,CAAC;AAEjC,SAAgB,UAAU;IAEtB,OAAO,OAAO,CAAC;AACnB,CAAC;AAED,SAAgB,SAAS,CAAC,QAAgB,EAAE,gBAAwB;IAEhE,OAAO;aACG,QAAS;;;;;wBAKE,UAAU,EAAG;;;2CAGM,gBAAiB;;;;8BAI/B,CAAC;AAC/B,CAAC;AAED,MAAa,QAAS,SAAQ,KAAK;IAE/B,YAAmB,MA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OAAO,CAAC,KAAK,CACT,KAAK,CAAC,gBAAgB,EACtB,UAAW,KAAK,CAAC,SAAU,+BAA+B,CAC7D,CAAC;gBACN,CAAC;qBAED,CAAC;oBACG,OAAO,CAAC,KAAK,CAAC,UAAW,KAAK,CAAC,SAAU,EAAE,CAAC,CAAC;gBACjD,CAAC;YACL,CAAC;iBAED,CAAC;gBACG,IAAI,KAAK,CAAC,gBAAgB,KAAK,SAAS,EACxC,CAAC;oBACG,OAAO,CAAC,KAAK,CACT,KAAK,CAAC,gBAAgB,EACtB,cAAe,UAAU,EAAG,+CAA+C,CAC9E,CAAC;gBACN,CAAC;qBAED,CAAC;oBACG,OAAO,CAAC,KAAK,CAAC,cAAe,UAAU,EAAG,kBAAkB,CAAC,CAAC;gBAClE,CAAC;YACL,CAAC;QACL,CAAC;aAED,CAAC;YACG,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,cAAe,UAAU,EAAG,+CAA+C,CAAC,CAAC;QACtG,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;AACL,CAAC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * The format of the JSON config file for using the CLI commands
3
- * offered by `electron-reactive-event`.
4
- */
5
- export type CliConfig = {
6
- /**
7
- * The path to the file containing the `declare module` block that augments
8
- * the `Registrar` type with your event declarations. This path should be
9
- * included in your `tsconfig.json`.
10
- */
11
- AugmentationModulePath: string;
12
- /**
13
- * `electron-reactive-event-cli` can create modules for you that export the reactive
14
- * IPC functions, scoped to your `PackageKey`.
15
- */
16
- IpcModulePath?: {
17
- /** The path of the module that calls `getReactiveIpcMain`, and exports its output. */
18
- Main?: string;
19
- /** The path of the module that calls `getReactiveIpcHooks`, and exports its output. */
20
- Renderer?: string;
21
- };
22
- /**
23
- * The unique identifier for your package. This allows `electron-reactive-event`
24
- * to be used by your package *and* any dependencies simultaneously.
25
- */
26
- PackageKey: string;
27
- /**
28
- * The path to the file that exports types scoped to your `PackageKey`.
29
- * Every type exported by `electron-reactive-event/scoped` is imported here,
30
- * and a new type of the same name is defined, with your `PackageKey` filled in
31
- * for the `PackageKey` type parameter. This path should be included in your
32
- * `tsconfig.json`.
33
- */
34
- ScopedModulePath: string;
35
- };
36
- //# sourceMappingURL=Config.Types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.Types.d.ts","sourceRoot":"","sources":["../Source/Config.Types.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,MAAM,SAAS,GACjB;IACI;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;;OAGG;IACH,aAAa,CAAC,EACd;QACI,sFAAsF;QACtF,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,uFAAuF;QACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IAEF;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /* File: Config.Types.ts
3
- * Author: Gage Sorrell <gage@sorrell.sh>
4
- * Copyright: (c) 2026 Gage Sorrell
5
- * License: MIT
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- //# sourceMappingURL=Config.Types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.Types.js","sourceRoot":"","sources":["../Source/Config.Types.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
@@ -1,28 +0,0 @@
1
- import type { CliConfig } from "./Config.Types";
2
- import type { PackageNameType } from "./Shared.Types";
3
- export declare const DefaultConfigFileName: string;
4
- /**
5
- * The name of the property that a dependent may specify in their `package.json#config`,
6
- * to specify a custom config file path.
7
- */
8
- export declare const PackageJsonConfigProperty: PackageNameType;
9
- export declare function HasConfig(Path?: string): Promise<boolean>;
10
- export declare function GetConfigPath(Path?: string): Promise<string | undefined>;
11
- export declare function IsConfigValid(Path?: string): Promise<boolean>;
12
- /**
13
- * Get the {@link CliConfig} of the given project.
14
- *
15
- * @throws If the root directory cannot be determined, or if there is no config file.
16
- *
17
- * @see {@link GetConfigSafe} for a version that does *not* throw, and patches any missing
18
- * properties with default values.
19
- *
20
- * @param Path - *(Optional)* A path of a directory in which the given project resides.
21
- * If no {@link Path} is given, then the current working directory is used.
22
- * @returns The config of the project at the given {@link Path} (or current
23
- * working directory if no {@link Path} is given).
24
- */
25
- export declare function GetConfig(Path?: string): Promise<CliConfig>;
26
- export declare function GetDefaultConfig(Path?: string): Promise<CliConfig>;
27
- export declare function GetConfigSafe(Path?: string): Promise<CliConfig>;
28
- //# sourceMappingURL=Config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../Source/Config.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,eAAO,MAAM,qBAAqB,EAAE,MAA+C,CAAC;AAEpF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,eACE,CAAC;AAE3C,wBAAsB,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAG/D;AAED,wBAAsB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAkC9E;AAED,wBAAsB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CA4BnE;AAYD;;;;;;;;;;;;GAYG;AACH,wBAAsB,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAcjE;AAED,wBAAsB,gBAAgB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CA0CxE;AAED,wBAAsB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CA6CrE"}
@@ -1,161 +0,0 @@
1
- "use strict";
2
- /* File: Config.ts
3
- * Author: Gage Sorrell <gage@sorrell.sh>
4
- * Copyright: (c) 2026 Gage Sorrell
5
- * License: MIT
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.PackageJsonConfigProperty = exports.DefaultConfigFileName = void 0;
9
- exports.HasConfig = HasConfig;
10
- exports.GetConfigPath = GetConfigPath;
11
- exports.IsConfigValid = IsConfigValid;
12
- exports.GetConfig = GetConfig;
13
- exports.GetDefaultConfig = GetDefaultConfig;
14
- exports.GetConfigSafe = GetConfigSafe;
15
- const fs_1 = require("fs");
16
- const utilities_1 = require("@sorrell/utilities");
17
- const path_1 = require("path");
18
- const promises_1 = require("fs/promises");
19
- exports.DefaultConfigFileName = "electron-reactive-event.config.jsonc";
20
- /**
21
- * The name of the property that a dependent may specify in their `package.json#config`,
22
- * to specify a custom config file path.
23
- */
24
- exports.PackageJsonConfigProperty = "electron-reactive-event-cli";
25
- async function HasConfig(Path) {
26
- return (GetConfigPath(Path) !== undefined);
27
- }
28
- async function GetConfigPath(Path) {
29
- try {
30
- const Root = await (0, utilities_1.GetPackageRootDirectory)(Path);
31
- const DefaultPath = (0, path_1.resolve)(Root, exports.DefaultConfigFileName);
32
- const HasConfigAtDefaultPath = (0, fs_1.existsSync)(DefaultPath);
33
- if (HasConfigAtDefaultPath) {
34
- return DefaultPath;
35
- }
36
- const PackageJson = await (0, utilities_1.GetPackageJson)();
37
- if ("config" in PackageJson && PackageJson.config !== undefined) {
38
- if (exports.PackageJsonConfigProperty in PackageJson.config &&
39
- typeof PackageJson.config[exports.PackageJsonConfigProperty] === "string") {
40
- const ConfigPath = PackageJson.config[exports.PackageJsonConfigProperty];
41
- return (0, path_1.isAbsolute)(ConfigPath)
42
- ? ConfigPath
43
- : (0, path_1.resolve)(Root, ConfigPath);
44
- }
45
- }
46
- }
47
- catch {
48
- return undefined;
49
- }
50
- return undefined;
51
- }
52
- async function IsConfigValid(Path) {
53
- if (!(await HasConfig(Path))) {
54
- return false;
55
- }
56
- try {
57
- const Config = await GetConfig(Path);
58
- return (typeof Config === "object" &&
59
- Config !== null &&
60
- "$schema" in Config &&
61
- typeof Config.$schema === "string" &&
62
- "AugmentationModulePath" in Config &&
63
- typeof Config.AugmentationModulePath === "string" &&
64
- "PackageKey" in Config &&
65
- typeof Config.PackageKey === "string" &&
66
- "ScopedModulePath" in Config &&
67
- typeof Config.ScopedModulePath === "string");
68
- }
69
- catch {
70
- return false;
71
- }
72
- }
73
- async function ParseJsonc(Path) {
74
- const File = (await (0, promises_1.readFile)(Path, { encoding: "utf-8" }))
75
- .split("\n")
76
- .filter((Line) => !Line.trim().startsWith("//"))
77
- .join("\n");
78
- return JSON.parse(File);
79
- }
80
- /**
81
- * Get the {@link CliConfig} of the given project.
82
- *
83
- * @throws If the root directory cannot be determined, or if there is no config file.
84
- *
85
- * @see {@link GetConfigSafe} for a version that does *not* throw, and patches any missing
86
- * properties with default values.
87
- *
88
- * @param Path - *(Optional)* A path of a directory in which the given project resides.
89
- * If no {@link Path} is given, then the current working directory is used.
90
- * @returns The config of the project at the given {@link Path} (or current
91
- * working directory if no {@link Path} is given).
92
- */
93
- async function GetConfig(Path) {
94
- // const Root: string = await GetPackageRootDirectory(Path);
95
- const ConfigPath = await GetConfigPath(Path);
96
- if (ConfigPath !== undefined) {
97
- return ParseJsonc(ConfigPath);
98
- }
99
- else {
100
- throw new Error("No config file was found.");
101
- }
102
- }
103
- async function GetDefaultConfig(Path) {
104
- const Root = await (0, utilities_1.GetPackageRootDirectory)(Path);
105
- const SourcePath = await (async () => {
106
- const Directories = (await (0, promises_1.readdir)(Root, { withFileTypes: true }))
107
- .filter((Entry) => Entry.isDirectory())
108
- .map((Entry) => Entry.name);
109
- if (Directories.includes("src")) {
110
- return (0, path_1.resolve)(Root, "src");
111
- }
112
- else if (Directories.includes("Source")) {
113
- return (0, path_1.resolve)(Root, "Source");
114
- }
115
- else {
116
- return Root;
117
- }
118
- })();
119
- const DefaultAugmentationFileName = "Reactive.Events.Generated.Types.ts";
120
- const DefaultScopedModuleFileName = "Reactive.Generated.ts";
121
- const DefaultPackageKey = await (async () => {
122
- const PackageJson = JSON.parse(await (0, promises_1.readFile)((0, path_1.resolve)(Root, "package.json"), { encoding: "utf-8" }));
123
- return PackageJson.name.replace("@", "").replaceAll("/", "").replaceAll("-", "");
124
- })();
125
- return {
126
- AugmentationModulePath: (0, path_1.resolve)(SourcePath, DefaultAugmentationFileName),
127
- PackageKey: DefaultPackageKey,
128
- ScopedModulePath: (0, path_1.resolve)(SourcePath, DefaultScopedModuleFileName)
129
- };
130
- }
131
- async function GetConfigSafe(Path) {
132
- try {
133
- const Config = await GetConfig(Path);
134
- const Default = await GetDefaultConfig(Path);
135
- if (typeof Config === "object" && Config !== null) {
136
- const Out = { ...Default };
137
- if ("AugmentationModulePath" in Config && typeof Config.AugmentationModulePath === "string") {
138
- Out.AugmentationModulePath = Config.AugmentationModulePath;
139
- }
140
- if ("PackageKey" in Config && typeof Config.PackageKey === "string") {
141
- Out.PackageKey = Config.PackageKey;
142
- }
143
- if ("ScopedModulePath" in Config && typeof Config.ScopedModulePath === "string") {
144
- Out.ScopedModulePath = Config.ScopedModulePath;
145
- }
146
- if ("IpcModulePath" in Config &&
147
- typeof Config.IpcModulePath === "object" &&
148
- Config.IpcModulePath !== null) {
149
- Out.IpcModulePath = Config.IpcModulePath;
150
- }
151
- return Out;
152
- }
153
- else {
154
- return GetDefaultConfig(Path);
155
- }
156
- }
157
- catch {
158
- return GetDefaultConfig(Path);
159
- }
160
- }
161
- //# sourceMappingURL=Config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.js","sourceRoot":"","sources":["../Source/Config.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAmBH,8BAGC;AAED,sCAkCC;AAED,sCA4BC;AAyBD,8BAcC;AAED,4CA0CC;AAED,sCA6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jC,CAAC;gBACG,GAAG,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;YAC7C,CAAC;YAED,OAAO,GAAG,CAAC;QACf,CAAC;aAED,CAAC;YACG,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC;IACL,CAAC;IACD,MACA,CAAC;QACG,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;AACL,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function DeclareEventsCommand(Path?: string): Promise<void>;
2
- //# sourceMappingURL=DeclareEvents.Command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeclareEvents.Command.d.ts","sourceRoot":"","sources":["../Source/DeclareEvents.Command.ts"],"names":[],"mappings":"AAWA,wBAAsB,oBAAoB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIvE"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- /* File: DeclareEvents.Command.ts
3
- * Author: Gage Sorrell <gage@sorrell.sh>
4
- * Copyright: (c) 2026 Gage Sorrell
5
- * License: MIT
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.DeclareEventsCommand = DeclareEventsCommand;
9
- /* eslint-disable jsdoc/require-jsdoc */
10
- const DeclareEvents_1 = require("./DeclareEvents");
11
- const Command_1 = require("./Command");
12
- async function DeclareEventsCommand(Path) {
13
- (0, Command_1.SetCommand)("declare-events");
14
- await (0, DeclareEvents_1.DeclareEvents)(Path);
15
- }
16
- //# sourceMappingURL=DeclareEvents.Command.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeclareEvents.Command.js","sourceRoot":"","sources":["../Source/DeclareEvents.Command.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAOH,oDAIC;AATD,wCAAwC;AAExC,mDAAgD;AAChD,uCAAuC;AAEhC,KAAK,UAAU,oBAAoB,CAAC,IAAa;IAEpD,IAAA,oBAAU,EAAC,gBAAgB,CAAC,CAAC;IAC7B,MAAM,IAAA,6BAAa,EAAC,IAAI,CAAC,CAAC;AAC9B,CAAC"}
@@ -1,11 +0,0 @@
1
- export type EventOwnerString = "Main" | "Renderer";
2
- export type EventDeclaration = {
3
- Name: string;
4
- Owner: EventOwnerString;
5
- };
6
- export type DeclarationsArray = Array<EventDeclaration>;
7
- export type EventDeclaringModule = {
8
- Declarations: DeclarationsArray;
9
- Path: string;
10
- };
11
- //# sourceMappingURL=DeclareEvents.Types.d.ts.map