electron-reactive-event-cli 1.0.119 → 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 -44
  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
@@ -1,184 +0,0 @@
1
- "use strict";
2
- /* File: Setup.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.SetupCommand = SetupCommand;
12
- /* eslint-disable jsdoc/require-jsdoc, no-console */
13
- const Config_1 = require("./Config");
14
- const Shared_1 = require("./Shared");
15
- const promises_1 = require("fs/promises");
16
- const chalk_1 = __importDefault(require("chalk"));
17
- const cli_utilities_1 = require("@sorrell/cli-utilities");
18
- const utilities_1 = require("@sorrell/utilities");
19
- const prompt_adapter_enquirer_1 = require("@listr2/prompt-adapter-enquirer");
20
- const Command_1 = require("./Command");
21
- const fs_1 = require("fs");
22
- const path_1 = require("path");
23
- async function GetDefaultWrittenConfig() {
24
- const SchemaLine = "$schema: \"https://electron-reactive-event.sorrell.sh/CliConfig.Schema.json\"";
25
- const Lines = JSON.stringify(await (0, Config_1.GetDefaultConfig)(), null, 4)
26
- .split("\n")
27
- .splice(1, 0, SchemaLine, "\n");
28
- const InsertionIndex = Lines.findIndex((Line) => {
29
- return Line.includes("AugmentationModulePath: string;");
30
- });
31
- /* eslint-disable-next-line @stylistic/max-len */
32
- const CommentedContent = `// // \`electron-reactive-event-cli\` can create modules for you that export the reactive
33
- // // IPC functions, scoped to your \`PackageKey\`.
34
- // "IpcModulePath": {
35
- // // The path of the module that calls \`getReactiveIpcMain\`, and exports its output.
36
- // "Main": "",
37
-
38
- // // The path of the module that calls \`getReactiveIpcHooks\`, and exports its output.
39
- // "Renderer": ""
40
- // };
41
- `.split("\n");
42
- return Lines.toSpliced(InsertionIndex, 0, ...CommentedContent, "\n").join("\n");
43
- }
44
- // async function Inner(): Promise<string>
45
- // {
46
- // const Root: string = await GetPackageRootDirectory();
47
- // const ConfigPath: string = resolve(Root, ConfigFileName);
48
- // if (!existsSync(ConfigPath))
49
- // {
50
- // try
51
- // {
52
- // console.log("Going to write file...");
53
- // await writeFile(
54
- // ConfigPath,
55
- // await GetDefaultWrittenConfig(),
56
- // { encoding: "utf-8" }
57
- // );
58
- // console.log("Wrote file!", ConfigPath);
59
- // return ConfigPath;
60
- // }
61
- // catch (Error: unknown)
62
- // {
63
- // throw new TryError(undefined, Error);
64
- // }
65
- // }
66
- // else
67
- // {
68
- // throw new TryError(`A file was already found at ${ ConfigPath }. Exiting!`);
69
- // }
70
- // }
71
- async function SetupCommand() {
72
- (0, Command_1.SetCommand)("setup");
73
- await (0, Shared_1.RunListr)([
74
- {
75
- task: async (Context, Task) => {
76
- try {
77
- Context.RootDirectory = await (0, utilities_1.GetPackageRootDirectory)();
78
- }
79
- catch {
80
- Task.title = "Failed to find root directory of a NodeJS project.";
81
- /* eslint-disable-next-line @stylistic/max-len */
82
- throw new Shared_1.SimpleError("It appears that the command was not run from within a NodeJS project. Exiting.");
83
- }
84
- Task.title = "Found root directory of current NodeJS project.";
85
- },
86
- title: "Finding root directory of current NodeJS project."
87
- },
88
- {
89
- task: async (Context, Task) => {
90
- if ((0, fs_1.existsSync)((0, path_1.resolve)(Context.RootDirectory, Config_1.DefaultConfigFileName))) {
91
- Task.title = "Found existing config file.";
92
- Context.ConfigAlreadyExists = true;
93
- }
94
- Task.title = "Did not find an existing config file.";
95
- },
96
- title: "Checking for existing config file."
97
- },
98
- {
99
- skip: (Context) => Context.ConfigAlreadyExists,
100
- task: async (Context, Task) => {
101
- const ConfigPath = (0, path_1.resolve)(Context.RootDirectory, Config_1.DefaultConfigFileName);
102
- try {
103
- await (0, promises_1.writeFile)(ConfigPath, await GetDefaultWrittenConfig(), { encoding: "utf-8" });
104
- Task.title = "Wrote default config file.";
105
- }
106
- catch {
107
- Task.title = "Failed to write default config file.";
108
- throw new Shared_1.SimpleError("Unable to write default config file. Exiting.");
109
- }
110
- },
111
- title: "Writing default config file."
112
- },
113
- {
114
- task: async (Context, Task) => {
115
- Context.WriteNpmScript = await Task.prompt(prompt_adapter_enquirer_1.ListrEnquirerPromptAdapter).run({
116
- initial: true,
117
- /* eslint-disable-next-line @stylistic/max-len */
118
- message: `Add ${(0, cli_utilities_1.Code)("npm")} script "${(0, cli_utilities_1.Code)("update-reactive")}" to run the ${(0, cli_utilities_1.Code)("declare-events")} and ${(0, cli_utilities_1.Code)("generate")} commands for you?`,
119
- type: "Toggle"
120
- });
121
- /* eslint-disable-next-line @stylistic/max-len */
122
- Task.title = `Determined that the ${(0, cli_utilities_1.Code)("npm")} script "${(0, cli_utilities_1.Code)("update-reactive")}" ${Context.WriteNpmScript ? chalk_1.default.italic("should") : "should " + chalk_1.default.italic("not")} be added.`;
123
- },
124
- /* eslint-disable-next-line @stylistic/max-len */
125
- title: `Determining whether the ${(0, cli_utilities_1.Code)("npm")} script "${(0, cli_utilities_1.Code)("update-reactive")}" should be added.`
126
- },
127
- {
128
- skip: (Context) => !Context.WriteNpmScript,
129
- task: async (_Context, Task) => {
130
- return Task.newListr((ParentTask) => [
131
- {
132
- task: async (Context, Task) => {
133
- const PackageJsonPath = (0, path_1.resolve)(Context.RootDirectory, "package.json");
134
- const PackageJsonContents = await (0, promises_1.readFile)(PackageJsonPath, { encoding: "utf-8" });
135
- Context.PackageJson = JSON.parse(PackageJsonContents);
136
- Task.title = `Read the project's ${(0, cli_utilities_1.Code)("package.json")}.`;
137
- },
138
- title: `Reading the project's ${(0, cli_utilities_1.Code)("package.json")}.`
139
- },
140
- {
141
- task: async (Context, Task) => {
142
- if ("scripts" in Context.PackageJson &&
143
- typeof Context.PackageJson.scripts === "object" &&
144
- Context.PackageJson.scripts !== null) {
145
- if ("update-reactive" in Context.PackageJson.scripts) {
146
- Context.AlreadyHasUpdateReactiveScript = true;
147
- Task.title = `Found existing "${(0, cli_utilities_1.Code)("update-reactive")}" script.`;
148
- return;
149
- }
150
- }
151
- Context.AlreadyHasUpdateReactiveScript = false;
152
- Task.title = `No existing "${(0, cli_utilities_1.Code)("update-reactive")}" script found.`;
153
- },
154
- title: `Checking for existing "${(0, cli_utilities_1.Code)("update-reactive")}" script.`
155
- },
156
- {
157
- skip: (Context) => Context.AlreadyHasUpdateReactiveScript,
158
- task: async (Context, Task) => {
159
- const ScriptsUndefined = (!("scripts" in Context.PackageJson) ||
160
- Context.PackageJson.scripts === undefined);
161
- if (ScriptsUndefined) {
162
- Context.PackageJson.scripts = {};
163
- }
164
- Context.PackageJson.scripts["update-reactive"] =
165
- /* eslint-disable-next-line @stylistic/max-len */
166
- "electron-reactive-event-cli declare-events && electron-reactive-event-cli generate";
167
- const OutPackageJson = JSON.stringify(Context.PackageJson, null, 2);
168
- await (0, promises_1.writeFile)((0, path_1.resolve)(Context.RootDirectory, "package.json"), OutPackageJson, { encoding: "utf-8" });
169
- Task.title = `Saved changes to ${(0, cli_utilities_1.Code)("package.json")}.`;
170
- /* eslint-disable-next-line @stylistic/max-len */
171
- ParentTask.title = `Added "${(0, cli_utilities_1.Code)("update-reactive")}" script to ${(0, cli_utilities_1.Code)("package.json")}.`;
172
- },
173
- title: `Saving changes to ${(0, cli_utilities_1.Code)("package.json")}.`
174
- }
175
- ], { concurrent: false });
176
- },
177
- title: `Adding "${(0, cli_utilities_1.Code)("update-reactive")}" script to ${(0, cli_utilities_1.Code)("package.json")}.`
178
- }
179
- ], "Failed to finish setup.", {
180
- concurrent: false
181
- });
182
- console.log(`${chalk_1.default.green("✓")} Completed ${(0, cli_utilities_1.Code)("setup")} successfully!`);
183
- }
184
- //# sourceMappingURL=Setup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Setup.js","sourceRoot":"","sources":["../Source/Setup.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AA4EH,oCAuKC;AAjPD,oDAAoD;AAEpD,qCAAmE;AACnE,qCAAiD;AACjD,0CAAkD;AAClD,kDAA0B;AAC1B,0DAA8C;AAC9C,kDAA6D;AAE7D,6EAA6E;AAC7E,uCAAuC;AAEvC,2BAAgC;AAChC,+BAA+B;AAE/B,KAAK,UAAU,uBAAuB;IAElC,MAAM,UAAU,GACZ,+EAA+E,CAAC;IAEpF,MAAM,KAAK,GAAkB,IAAI,CAAC,SAAS,CAAC,MAAM,IAAA,yBAAgB,GAAE,EAAE,IAAI,EAAE,CAAC,CAAC;SACzE,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IAEpC,MAAM,cAAc,GAAW,KAAK,CAAC,SAAS,CAAC,CAAC,IAAY,EAAW,EAAE;QAErE,OAAO,IAAI,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,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,EACX,IAAA,cAAO,EAAC,OAAO,CAAC,aAAa,EAAE,cAAc,CAAC,EAC9C,cAAc,EACd,EAAE,QAAQ,EAAE,OAAO,EAAE,CACxB,CAAC;4BAEF,IAAI,CAAC,KAAK,GAAG,oBAAqB,IAAA,oBAAI,EAAC,cAAc,CAAE,GAAG,CAAC;4BAE3D,iDAAiD;4BACjD,UAAU,CAAC,KAAK,GAAG,UAAW,IAAA,oBAAI,EAAC,iBAAiB,CAAE,eAAgB,IAAA,oBAAI,EAAC,cAAc,CAAE,GAAG,CAAC;wBACnG,CAAC;wBACD,KAAK,EAAE,qBAAsB,IAAA,oBAAI,EAAC,cAAc,CAAE,GAAG;qBACxD;iBACJ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;YAC9B,CAAC;YACD,KAAK,EAAE,WAAY,IAAA,oBAAI,EAAC,iBAAiB,CAAE,eAAgB,IAAA,oBAAI,EAAC,cAAc,CAAE,GAAG;SACtF;KACJ,EACD,yBAAyB,EACzB;QACI,UAAU,EAAE,KAAK;KACpB,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,GAAI,eAAK,CAAC,KAAK,CAAC,GAAG,CAAE,cAAe,IAAA,oBAAI,EAAC,OAAO,CAAE,gBAAgB,CAAC,CAAC;AACpF,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { DefaultRenderer, ListrDefaultRenderer, ListrGetRendererClassFromValue, ListrTask, ListrTaskWrapper } from "listr2";
2
- export type Wrapper<ContextType> = ListrTaskWrapper<ContextType, ListrDefaultRenderer, ListrDefaultRenderer>;
3
- export type ListrConstructorTask<ContextType> = ListrTask<ContextType, ListrGetRendererClassFromValue<typeof DefaultRenderer>, ListrGetRendererClassFromValue<typeof DefaultRenderer>> | Array<ListrTask<ContextType, ListrGetRendererClassFromValue<typeof DefaultRenderer>, ListrGetRendererClassFromValue<typeof DefaultRenderer>>>;
4
- /** The name of the CLI package. */
5
- export type PackageNameType = "electron-reactive-event-cli";
6
- //# sourceMappingURL=Shared.Types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Shared.Types.d.ts","sourceRoot":"","sources":["../Source/Shared.Types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,eAAe,EACf,oBAAoB,EACpB,8BAA8B,EAC9B,SAAS,EACT,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAErC,MAAM,MAAM,OAAO,CAAC,WAAW,IAAI,gBAAgB,CAC/C,WAAW,EACX,oBAAoB,EACpB,oBAAoB,CACvB,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,WAAW,IACtC,SAAS,CACP,WAAW,EACX,8BAA8B,CAAC,OAAO,eAAe,CAAC,EACtD,8BAA8B,CAAC,OAAO,eAAe,CAAC,CAAC,GACzD,KAAK,CAAC,SAAS,CACb,WAAW,EACX,8BAA8B,CAAC,OAAO,eAAe,CAAC,EACtD,8BAA8B,CAAC,OAAO,eAAe,CAAC,CAAC,CAC1D,CAAC;AAEN,mCAAmC;AACnC,MAAM,MAAM,eAAe,GAAG,6BAA6B,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /* File: Shared.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=Shared.Types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Shared.Types.js","sourceRoot":"","sources":["../Source/Shared.Types.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
@@ -1,24 +0,0 @@
1
- import { type DefaultRenderer, type ListrBaseClassOptions, type ListrTaskObject } from "listr2";
2
- import type { ListrConstructorTask, PackageNameType } from "./Shared.Types";
3
- /** {@inheritdoc PackageNameType} */
4
- export declare const PackageName: PackageNameType;
5
- /** A string-only {@link Error} used by {@link Listr} to show nicely-formatted errors. */
6
- export declare class SimpleError extends Error {
7
- constructor(Message: string);
8
- TheMessage: string;
9
- }
10
- /**
11
- * A wrapper for `new Listr` that handles errors nicely.
12
- *
13
- * @typeParam ContextType - The type of the `listr2` context used by the {@link Task}.
14
- *
15
- * @param Task - The task(s) to run.
16
- * @param GenericErrorMessage - The error message that is shown if the {@link Task | task(s)} throw(s)
17
- * something other than a {@link SimpleError}.
18
- * @param Options - *(Optional)* The {@link ListrBaseClassOptions} used to customize the
19
- * {@link Task | task(s)}.
20
- * @param ParentTask - *(Optional)* The {@link ListrTaskObject | parent task} of which the
21
- * {@link Task | task(s)} are (a) descendant(s).
22
- */
23
- export declare function RunListr<ContextType = unknown>(Task: ListrConstructorTask<ContextType>, GenericErrorMessage: string, Options?: ListrBaseClassOptions<ContextType, typeof DefaultRenderer, typeof DefaultRenderer>, ParentTask?: ListrTaskObject<unknown, typeof DefaultRenderer, typeof DefaultRenderer>): Promise<void>;
24
- //# sourceMappingURL=Shared.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Shared.d.ts","sourceRoot":"","sources":["../Source/Shared.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACI,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAI5E,oCAAoC;AACpC,eAAO,MAAM,WAAW,EAAE,eAAwD,CAAC;AAInF,yFAAyF;AACzF,qBAAa,WAAY,SAAQ,KAAK;gBAEf,OAAO,EAAE,MAAM;IAM3B,UAAU,EAAE,MAAM,CAAC;CAC7B;AA8BD;;;;;;;;;;;;GAYG;AACH,wBAAsB,QAAQ,CAAC,WAAW,GAAG,OAAO,EAChD,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC,EACvC,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,qBAAqB,CAAC,WAAW,EAAE,OAAO,eAAe,EAAE,OAAO,eAAe,CAAC,EAC5F,UAAU,CAAC,EAAE,eAAe,CACxB,OAAO,EACP,OAAO,eAAe,EACtB,OAAO,eAAe,CACzB,GACF,OAAO,CAAC,IAAI,CAAC,CAkBf"}
@@ -1,66 +0,0 @@
1
- "use strict";
2
- /* File: Shared.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.SimpleError = exports.PackageName = void 0;
9
- exports.RunListr = RunListr;
10
- const listr2_1 = require("listr2");
11
- /* eslint-disable jsdoc/require-jsdoc */
12
- /** {@inheritdoc PackageNameType} */
13
- exports.PackageName = "electron-reactive-event-cli";
14
- /* eslint-enable jsdoc/require-jsdoc */
15
- /** A string-only {@link Error} used by {@link Listr} to show nicely-formatted errors. */
16
- class SimpleError extends Error {
17
- constructor(Message) {
18
- super();
19
- this.TheMessage = Message;
20
- }
21
- TheMessage;
22
- }
23
- exports.SimpleError = SimpleError;
24
- ;
25
- class Listr extends listr2_1.Listr {
26
- constructor(Task, Options, ParentTask) {
27
- if (Options === undefined && ParentTask === undefined) {
28
- super(Task);
29
- }
30
- else if (Options !== undefined && ParentTask === undefined) {
31
- super(Task, Options);
32
- }
33
- else if (Options !== undefined && ParentTask !== undefined) {
34
- super(Task, Options, ParentTask);
35
- }
36
- }
37
- }
38
- ;
39
- /**
40
- * A wrapper for `new Listr` that handles errors nicely.
41
- *
42
- * @typeParam ContextType - The type of the `listr2` context used by the {@link Task}.
43
- *
44
- * @param Task - The task(s) to run.
45
- * @param GenericErrorMessage - The error message that is shown if the {@link Task | task(s)} throw(s)
46
- * something other than a {@link SimpleError}.
47
- * @param Options - *(Optional)* The {@link ListrBaseClassOptions} used to customize the
48
- * {@link Task | task(s)}.
49
- * @param ParentTask - *(Optional)* The {@link ListrTaskObject | parent task} of which the
50
- * {@link Task | task(s)} are (a) descendant(s).
51
- */
52
- async function RunListr(Task, GenericErrorMessage, Options, ParentTask) {
53
- try {
54
- await new Listr(Task, Options, ParentTask);
55
- }
56
- catch (ListrError) {
57
- if (ListrError instanceof SimpleError) {
58
- console.error(`🚨 ${ListrError.TheMessage}`);
59
- }
60
- else {
61
- console.dir(ListrError);
62
- console.error(`\n🚨 ${GenericErrorMessage}. The error is printed above.`);
63
- }
64
- }
65
- }
66
- //# sourceMappingURL=Shared.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Shared.js","sourceRoot":"","sources":["../Source/Shared.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAqEH,4BA2BC;AA9FD,mCAI2C;AAG3C,wCAAwC;AAExC,oCAAoC;AACvB,QAAA,WAAW,GAAoB,6BAAsC,CAAC;AAEnF,uCAAuC;AAEvC,yFAAyF;AACzF,MAAa,WAAY,SAAQ,KAAK;IAElC,YAAmB,OAAe;QAE9B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;IAC9B,CAAC;IAEM,UAAU,CAAS;CAC7B;AATD,kCASC;AAAA,CAAC;AAEF,MAAM,KACF,SAAQ,cAA0E;IAElF,YACI,IAAuC,EACvC,OAA4F,EAC5F,UAIC;QAGD,IAAI,OAAO,KAAK,SAAS,IAAI,UAAU,KAAK,SAAS,EACrD,CAAC;YACG,KAAK,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC;aACI,IAAI,OAAO,KAAK,SAAS,IAAI,UAAU,KAAK,SAAS,EAC1D,CAAC;YACG,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACzB,CAAC;aACI,IAAI,OAAO,KAAK,SAAS,IAAI,UAAU,KAAK,SAAS,EAC1D,CAAC;YACG,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACrC,CAAC;IACL,CAAC;CACJ;AAAA,CAAC;AAEF;;;;;;;;;;;;GAYG;AACI,KAAK,UAAU,QAAQ,CAC1B,IAAuC,EACvC,mBAA2B,EAC3B,OAA4F,EAC5F,UAIC;IAGD,IACA,CAAC;QACG,MAAM,IAAI,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,UAAmB,EAC1B,CAAC;QACG,IAAI,UAAU,YAAY,WAAW,EACrC,CAAC;YACG,OAAO,CAAC,KAAK,CAAC,MAAO,UAAU,CAAC,UAAW,EAAE,CAAC,CAAC;QACnD,CAAC;aAED,CAAC;YACG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACxB,OAAO,CAAC,KAAK,CAAC,QAAS,mBAAoB,gCAAgC,CAAC,CAAC;QACjF,CAAC;IACL,CAAC;AACL,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=WriteTypesToClipboard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WriteTypesToClipboard.d.ts","sourceRoot":"","sources":["../Source/WriteTypesToClipboard.ts"],"names":[],"mappings":""}
@@ -1,193 +0,0 @@
1
- "use strict";
2
- /* File: WriteTypesToClipboard.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
- /* eslint-disable */
12
- const clipboardy_1 = __importDefault(require("clipboardy"));
13
- const path_1 = require("path");
14
- const typescript_1 = __importDefault(require("typescript"));
15
- function GetExportedTypeNamesWithTypeParameterVectors(PackageEntryDeclarationPath) {
16
- const Program = typescript_1.default.createProgram([PackageEntryDeclarationPath], {});
17
- const TypeChecker = Program.getTypeChecker();
18
- const SourceFile = Program.getSourceFile(PackageEntryDeclarationPath);
19
- const EmptyRecord = {
20
- Scoped: [],
21
- Unscoped: []
22
- };
23
- if (!SourceFile) {
24
- return EmptyRecord;
25
- }
26
- const ModuleSymbol = TypeChecker.getSymbolAtLocation(SourceFile) ??
27
- SourceFile.symbol;
28
- if (!ModuleSymbol) {
29
- return EmptyRecord;
30
- }
31
- const ScopedResults = new Set();
32
- const UnscopedResults = new Set();
33
- for (const ExportedSymbol of TypeChecker.getExportsOfModule(ModuleSymbol)) {
34
- const ResolvedSymbol = ExportedSymbol.getFlags() & typescript_1.default.SymbolFlags.Alias
35
- ? TypeChecker.getAliasedSymbol(ExportedSymbol)
36
- : ExportedSymbol;
37
- const Declaration = GetExportedTypeDeclaration(ResolvedSymbol);
38
- if (!Declaration) {
39
- continue;
40
- }
41
- const ToString = (TypeParameter) => {
42
- if (TypeParameter.constraint !== undefined) {
43
- return `${TypeParameter.name.getText()} extends ${TypeParameter.constraint.getText()}`;
44
- }
45
- else {
46
- return TypeParameter.name.getText();
47
- }
48
- };
49
- const TypeParameters = typescript_1.default.getEffectiveTypeParameterDeclarations(Declaration);
50
- const IsScopedType = TypeParameters.some((TypeParameter) => TypeParameter.name.getText() === "PackageKey");
51
- const TypeParameterNames = TypeParameters
52
- .filter((TypeParameter) => {
53
- return TypeParameter.name.getText() !== "PackageKey";
54
- })
55
- .map(ToString);
56
- const TypeParameterVector = TypeParameterNames.length === 0
57
- ? ""
58
- : `<${TypeParameterNames.join(", ")}>`;
59
- if (IsScopedType) {
60
- ScopedResults.add(`${ResolvedSymbol.getName()}${TypeParameterVector};`);
61
- }
62
- else {
63
- UnscopedResults.add(`${ResolvedSymbol.getName()}${TypeParameterVector};`);
64
- }
65
- }
66
- const ToArray = (In) => Array.from(In).sort();
67
- const Trim = (Type) => Type.replaceAll(";", "");
68
- return {
69
- Scoped: ToArray(ScopedResults).map(Trim),
70
- Unscoped: ToArray(UnscopedResults).map(Trim)
71
- };
72
- }
73
- function GetExportedTypeDeclaration(Symbol) {
74
- const Declarations = Symbol.getDeclarations() ?? [];
75
- return Declarations.find((Declaration) => typescript_1.default.isClassDeclaration(Declaration) ||
76
- typescript_1.default.isInterfaceDeclaration(Declaration) ||
77
- typescript_1.default.isTypeAliasDeclaration(Declaration) ||
78
- typescript_1.default.isEnumDeclaration(Declaration) ||
79
- typescript_1.default.isNamespaceExport(Declaration));
80
- }
81
- // function GetOutput(): string
82
- // {
83
- // const Types: TypesRecord = GetExportedTypeNamesWithTypeParameterVectors(resolve("..", "ElectronReactiveEvent", "Source", "index.Scoped.ts"));
84
- // Out.push(...Types.Scoped.map((Type: string): string =>
85
- // {
86
- // Type = Type.replaceAll(";", "");
87
- // const Name: string = Type.includes("<")
88
- // ? Type.slice(0, Type.indexOf("<"))
89
- // : Type;
90
- // const TypeArgumentVector: string | undefined = ((): string | undefined =>
91
- // {
92
- // if (!Type.includes("<"))
93
- // {
94
- // return undefined;
95
- // }
96
- // const Input: string =
97
- // Type.slice(Type.indexOf("<") + 1, Type.indexOf(">"))
98
- // const Matches: Array<string> = [ ];
99
- // const Pattern: RegExp = /(?:^|,)\s*([^,\s]+)/g;
100
- // let Match: RegExpExecArray | null;
101
- // while ((Match = Pattern.exec(Input)) !== null)
102
- // {
103
- // Matches.push(Match[1] as string);
104
- // }
105
- // return Matches.join(", ");
106
- // })();
107
- // return `${ Name }: \"export type ${ Type } = ${ Name }Imported<${ TypeArgumentVector }>;\"`;
108
- // }));
109
- // Out.push("// UNSCOPED");
110
- // Out.push(...Types.Unscoped.map((Type: string): string =>
111
- // {
112
- // Type = Type.replaceAll(";", "");
113
- // const Name: string = Type.includes("<")
114
- // ? Type.slice(0, Type.indexOf("<"))
115
- // : Type;
116
- // return Name;
117
- // }));
118
- // return Out.join("\n");
119
- // }
120
- // const Out: string = GetOutput();
121
- clipboardy_1.default.writeSync(JSON.stringify(GetExportedTypeNamesWithTypeParameterVectors((0, path_1.resolve)("..", "ElectronReactiveEvent", "Source", "index.Scoped.ts")), null, 4));
122
- console.log("Wrote to the clipboard!");
123
- // const OutOld: Array<string> = Types.map((Type: string): string =>
124
- // {
125
- // const IpcMainKeys: Array<string> =
126
- // [
127
- // "addListener",
128
- // "handle",
129
- // "handleOnce",
130
- // "off",
131
- // "on",
132
- // "once",
133
- // "removeAllListeners",
134
- // "removeHandler",
135
- // "removeListener"
136
- // ];
137
- // const ShouldRedefine: boolean = (
138
- // Type.includes("PackageKey") ||
139
- // IpcMainKeys.map(Key => Key.toLowerCase()).some(Key => Type.toLowerCase().startsWith(Key)) ||
140
- // Type.toLowerCase().startsWith("use")
141
- // );
142
- // if (ShouldRedefine)
143
- // {
144
- // const TypeName: string = Type.slice(0, Type.indexOf("<"));
145
- // if (Type.indexOf(",") !== Type.lastIndexOf(","))
146
- // {
147
- // const TypeParameterVector: string = Type.slice(Type.indexOf("<"), Type.indexOf(">")).replace("PackageKey, ", "");
148
- // const StringDelimiter: string = Type.includes("PackageKey")
149
- // ? "`"
150
- // : "\"";
151
- // const Almost: string = (
152
- // TypeName +
153
- // `: ${ StringDelimiter }export type ${ TypeName }${ TypeParameterVector }> = ` +
154
- // Type.replace(TypeName, `${ TypeName }Imported`).replace("PackageKey", "${ PackageKey }") +
155
- // `${ StringDelimiter },`
156
- // );
157
- // const Out: string = Almost.replace("OwnerType", "OwnerType extends EventOwner")
158
- // return Out;
159
- // }
160
- // else
161
- // {
162
- // if (Type.includes("PackageKey"))
163
- // {
164
- // const TypeNameBase: string = Type.replace(";", "");
165
- // const TypeName: string = TypeNameBase.slice(0, TypeNameBase.indexOf("<"));
166
- // return `${ TypeName }: \`export type ${ TypeName } = ${ TypeName }Imported<\${ PackageKey }>;\`,`;
167
- // }
168
- // else
169
- // {
170
- // const TypeNameBase: string = Type.replace(";", "");
171
- // const Out: string = TypeNameBase.includes("<")
172
- // ? TypeNameBase.slice(TypeNameBase.indexOf("<"), TypeNameBase.indexOf(">"))
173
- // : TypeNameBase;
174
- // return `${ Out }: ReexportedType,`;
175
- // }
176
- // }
177
- // }
178
- // else
179
- // {
180
- // const TypeNameBase: string = Type.replace(";", "");
181
- // const TypeName: string = TypeNameBase + Type.includes("<")
182
- // ? Type.slice(0, Type.indexOf("<"))
183
- // : "";
184
- // return `${ TypeName }: ReexportedType,`;
185
- // }
186
- // });
187
- // clipboard.writeSync(OutOld.join("\n"));
188
- // // const OldTypesArray: Array<string> = Object.keys(OldTypes);
189
- // // const NewTypes: Array<string> = Types.map(Type => Type.toLowerCase());
190
- // // const New: Array<string> = OldTypesArray.filter(Type => !NewTypes.some(NewType => NewType.includes(Type.toLowerCase())));
191
- // // clipboard.writeSync(New.join("\n"));
192
- // console.log(`✔️ Wrote ${ Out.length } types to the clipboard.`);
193
- //# sourceMappingURL=WriteTypesToClipboard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WriteTypesToClipboard.js","sourceRoot":"","sources":["../Source/WriteTypesToClipboard.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAEH,oBAAoB;AAEpB,4DAAmC;AACnC,+BAA+B;AAC/B,4DAAmG;AAmDnG,SAAS,4CAA4C,CACjD,2BAAmC;IAGnC,MAAM,OAAO,GAAG,oBAAE,CAAC,aAAa,CAAC,CAAC,2BAA2B,CAAC,EAAE,EAAE,CAAC,CAAC;IACpE,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAC7C,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,2BAA2B,CAAC,CAAC;IAEtE,MAAM,WAAW,GACb;QACI,MAAM,EAAE,EAAG;QACX,QAAQ,EAAE,EAAG;KAChB,CAAA;IAEL,IAAI,CAAC,UAAU,EACf,CAAC;QACG,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,MAAM,YAAY,GACd,WAAW,CAAC,mBAAmB,CAAC,UAAU,CAAC;QAC1C,UAAyD,CAAC,MAAM,CAAC;IAEtE,IAAI,CAAC,YAAY,EACjB,CAAC;QACG,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,MAAM,aAAa,GAAG,IAAI,GAAG,EAAU,CAAC;IACxC,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;IAE1C,KAAK,MAAM,cAAc,IAAI,WAAW,CAAC,kBAAkB,CAAC,YAAY,CAAC,EACzE,CAAC;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6FAA6F;AAC7F,qHAAqH;AACrH,gBAAgB;AAChB,mBAAmB;AACnB,gBAAgB;AAChB,sEAAsE;AACtE,iEAAiE;AACjE,iGAAiG;AACjG,sCAAsC;AACtC,sDAAsD;AACtD,gBAAgB;AAChB,YAAY;AACZ,QAAQ;AACR,WAAW;AACX,QAAQ;AACR,8DAA8D;AAC9D,qEAAqE;AACrE,iDAAiD;AACjD,oBAAoB;AACpB,mDAAmD;AACnD,QAAQ;AACR,MAAM;AAEN,0CAA0C;AAE1C,iEAAiE;AACjE,4EAA4E;AAC5E,+HAA+H;AAE/H,0CAA0C;AAC1C,oEAAoE"}
@@ -1,4 +0,0 @@
1
- export * from "./Config";
2
- export * from "./Config.Types";
3
- export * from "./DeclareEvents";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":"AAMA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /* File: index.ts
3
- * Author: Gage Sorrell <gage@sorrell.sh>
4
- * Copyright: (c) 2026 Gage Sorrell
5
- * License: MIT
6
- */
7
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
- if (k2 === undefined) k2 = k;
9
- var desc = Object.getOwnPropertyDescriptor(m, k);
10
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
- desc = { enumerable: true, get: function() { return m[k]; } };
12
- }
13
- Object.defineProperty(o, k2, desc);
14
- }) : (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- o[k2] = m[k];
17
- }));
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- __exportStar(require("./Config"), exports);
23
- __exportStar(require("./Config.Types"), exports);
24
- __exportStar(require("./DeclareEvents"), exports);
25
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,iDAA+B;AAC/B,kDAAgC"}
package/License.md DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2026 Gage Sorrell
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.