electron-reactive-event-cli 1.0.45 → 1.0.46
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/Distribution/Setup/Prompt.Types.d.ts +0 -7
- package/Distribution/Setup/Prompt.Types.d.ts.map +1 -1
- package/Distribution/Setup/Prompt.d.ts +3 -3
- package/Distribution/Setup/Prompt.d.ts.map +1 -1
- package/Distribution/Setup/Prompt.js +43 -75
- package/Distribution/Setup/Prompt.js.map +1 -1
- package/package.json +2 -3
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import type { PromptConfig } from "@sorrell/inquirer-file-selector";
|
|
2
1
|
import type { FRegistrarBaseMatch } from "./TsConfig.Types.js";
|
|
3
2
|
export type FRegistrarDefinition = {
|
|
4
3
|
Name: string;
|
|
5
4
|
Path: string;
|
|
6
5
|
};
|
|
7
|
-
export type FFileSelectorConfigFull = PromptConfig & {
|
|
8
|
-
allowCancel?: false;
|
|
9
|
-
multiple?: false;
|
|
10
|
-
};
|
|
11
|
-
export type FFileSelectorConfigBase = Omit<FFileSelectorConfigFull, "message" | "allowCancel">;
|
|
12
|
-
export type FFileSelectorConfig = Pick<FFileSelectorConfigFull, "filter" | "message" | "type"> & Partial<Pick<FFileSelectorConfigFull, "allowCancel" | "basePath">>;
|
|
13
6
|
export type FRegistrarModuleArray = ReadonlyArray<FRegistrarBaseMatch>;
|
|
14
7
|
//# sourceMappingURL=Prompt.Types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.Types.d.ts","sourceRoot":"","sources":["../../Source/Setup/Prompt.Types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Prompt.Types.d.ts","sourceRoot":"","sources":["../../Source/Setup/Prompt.Types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAC5B;IACI,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEN,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { type Item } from "@sorrell/cli-utilities";
|
|
1
2
|
import { type FBaseInterfaceName } from "../index.js";
|
|
2
|
-
import { type
|
|
3
|
-
import { type Item } from "@sorrell/inquirer-file-selector";
|
|
3
|
+
import { type FRegistrarDefinition } from "./index.js";
|
|
4
4
|
export declare function SelectRegistrarInterface(RegistrarBase: FBaseInterfaceName): Promise<FRegistrarDefinition>;
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function SelectDirectory(Message: string): Promise<Item>;
|
|
6
6
|
export declare function SelectBuiltModulePath(): Promise<string>;
|
|
7
7
|
export declare function SelectConfigDirectoryPath(): Promise<string>;
|
|
8
8
|
export declare function IsPackageJsonConfigNeeded(ConfigDirectoryPath: string, ConfigFileName?: string | undefined): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../Source/Setup/Prompt.ts"],"names":[],"mappings":"AAQA,OAAO,
|
|
1
|
+
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../Source/Setup/Prompt.ts"],"names":[],"mappings":"AAQA,OAAO,EAKH,KAAK,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAyB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAGH,KAAK,oBAAoB,EAKM,MAAM,YAAY,CAAC;AAkFtD,wBAAsB,wBAAwB,CAC1C,aAAa,EAAE,kBAAkB,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAkH/B;AAED,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BpE;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC,CAe7D;AAED,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,MAAM,CAAC,CAoBjE;AAOD,wBAAsB,yBAAyB,CAC3C,mBAAmB,EAAE,MAAM,EAC3B,cAAc,GAAE,MAAM,GAAG,SAAqB,GAC/C,OAAO,CAAC,OAAO,CAAC,CAWlB;AAED,wBAAsB,gBAAgB,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAoDjF"}
|
|
@@ -4,17 +4,16 @@
|
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
/* eslint-disable no-console */
|
|
7
|
+
import { Code, Confirm, FileSelector } from "@sorrell/cli-utilities";
|
|
7
8
|
import { DefaultConfigFileName } from "../index.js";
|
|
8
9
|
import { FormatDiagnostics, GetMatchingInterfacesInSourceFile, GetTsConfigPath, IsSearchableProjectSourceFile } from "./index.js";
|
|
9
10
|
import { constants as FileSystemConstants, access } from "fs/promises";
|
|
10
11
|
import { GetPackageRootDirectory, IsValidFileName } from "@sorrell/utilities";
|
|
11
|
-
import { fileSelector } from "@sorrell/inquirer-file-selector";
|
|
12
12
|
import TypeScript from "typescript";
|
|
13
13
|
import { basename, normalize, relative, resolve } from "path";
|
|
14
|
-
import {
|
|
14
|
+
import { input, select } from "@inquirer/prompts";
|
|
15
15
|
import ora from "ora";
|
|
16
16
|
import Chalk from "chalk";
|
|
17
|
-
import { Code } from "@sorrell/cli-utilities";
|
|
18
17
|
async function GetRegistrarModules(InterfaceName) {
|
|
19
18
|
const ProjectRootDirectoryPathResolved = resolve(await GetPackageRootDirectory());
|
|
20
19
|
const TsConfigPath = await GetTsConfigPath();
|
|
@@ -28,12 +27,6 @@ async function GetRegistrarModules(InterfaceName) {
|
|
|
28
27
|
throw new Error(`Failed to parse "${TsConfigPath}".\n${FormatDiagnostics(ParsedConfig.errors)}`);
|
|
29
28
|
}
|
|
30
29
|
const projectReferences = ParsedConfig.projectReferences || [];
|
|
31
|
-
// if (projectReferences === undefined)
|
|
32
|
-
// {
|
|
33
|
-
// /* eslint-disable-next-line @stylistic/max-len */
|
|
34
|
-
// console.error(`When trying to read the project's ${ Code("tsconfig.json") }, the resulting ${ Code("projectReferences") } property was ${ Code("undefined") }. Exiting...`);
|
|
35
|
-
// process.exit(1);
|
|
36
|
-
// }
|
|
37
30
|
const Program = TypeScript.createProgram({
|
|
38
31
|
options: ParsedConfig.options,
|
|
39
32
|
projectReferences,
|
|
@@ -72,13 +65,13 @@ export async function SelectRegistrarInterface(RegistrarBase) {
|
|
|
72
65
|
Ora.fail();
|
|
73
66
|
}
|
|
74
67
|
if (RegistrarModules.length === 0) {
|
|
75
|
-
const NoModulesFoundMessage =
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
68
|
+
const NoModulesFoundMessage = "There were no modules found in your project that " +
|
|
69
|
+
`define an interface that extends ${RegistrarBaseFormatted}.\n\nTo fix this, please ` +
|
|
70
|
+
"create a new module anywhere in your project (that is included by your " +
|
|
71
|
+
`${Code("tsconfig.json")}), then hit ${Code("Return")} for ` +
|
|
72
|
+
`${Code("electron-reactive-event-cli")} to search again.`;
|
|
80
73
|
console.log(NoModulesFoundMessage);
|
|
81
|
-
const Result = await
|
|
74
|
+
const Result = await Confirm({
|
|
82
75
|
default: true,
|
|
83
76
|
message: "Has the desired module been created?"
|
|
84
77
|
});
|
|
@@ -96,10 +89,10 @@ export async function SelectRegistrarInterface(RegistrarBase) {
|
|
|
96
89
|
const ModulePathFormatted = Code(relative(ModulePath, await GetPackageRootDirectory()));
|
|
97
90
|
const ModuleName = basename(RegistrarModules[0]?.Path || "");
|
|
98
91
|
const ModuleNameFormatted = Code(ModuleName);
|
|
99
|
-
const ConfirmationMessage = `The interface ${InterfaceNameFormatted} was found in
|
|
100
|
-
|
|
92
|
+
const ConfirmationMessage = `The interface ${InterfaceNameFormatted} was found in module ${ModuleNameFormatted}. ` +
|
|
93
|
+
`The module's full path is\n\n${ModulePathFormatted}\n\n`;
|
|
101
94
|
console.log(ConfirmationMessage);
|
|
102
|
-
const Confirms = await
|
|
95
|
+
const Confirms = await Confirm({
|
|
103
96
|
default: true,
|
|
104
97
|
message: "Is this the interface definition that you wish to use?"
|
|
105
98
|
});
|
|
@@ -114,9 +107,9 @@ export async function SelectRegistrarInterface(RegistrarBase) {
|
|
|
114
107
|
}
|
|
115
108
|
else // RegistrarModules.length > 1
|
|
116
109
|
{
|
|
117
|
-
const ManyFoundMessage = `There were ${RegistrarModules.length} interfaces found
|
|
118
|
-
|
|
119
|
-
|
|
110
|
+
const ManyFoundMessage = `There were ${RegistrarModules.length} interfaces found that extend ` +
|
|
111
|
+
`${RegistrarBaseFormatted}. Their names and the paths in which they ` +
|
|
112
|
+
"reside are given below.";
|
|
120
113
|
console.log(ManyFoundMessage);
|
|
121
114
|
const InterfaceDefinitionToString = (Definition) => {
|
|
122
115
|
return `${Code(Definition.Name)} (${Code(Definition.Path)})`;
|
|
@@ -139,71 +132,47 @@ export async function SelectRegistrarInterface(RegistrarBase) {
|
|
|
139
132
|
}
|
|
140
133
|
return Out;
|
|
141
134
|
}
|
|
142
|
-
export async function
|
|
135
|
+
export async function SelectDirectory(Message) {
|
|
143
136
|
const filter = (In) => {
|
|
144
|
-
|
|
145
|
-
if (Config.filter !== undefined) {
|
|
146
|
-
FilteredByGivenConfig = Config.filter(In);
|
|
147
|
-
}
|
|
148
|
-
return (!In.name.includes("node_modules") &&
|
|
149
|
-
!FilteredByGivenConfig);
|
|
137
|
+
return !In.name.includes("node_modules");
|
|
150
138
|
};
|
|
151
|
-
const
|
|
139
|
+
const Config = {
|
|
152
140
|
basePath: await GetPackageRootDirectory(),
|
|
153
141
|
filter,
|
|
154
|
-
|
|
155
|
-
back: ["left"],
|
|
156
|
-
confirm: ["enter", "return"],
|
|
157
|
-
down: ["down"],
|
|
158
|
-
forward: ["right"],
|
|
159
|
-
up: ["up"]
|
|
160
|
-
},
|
|
161
|
-
loop: true,
|
|
162
|
-
multiple: false,
|
|
142
|
+
message: Message,
|
|
163
143
|
theme: {
|
|
164
144
|
labels: {
|
|
165
145
|
hints: {
|
|
166
146
|
confirm: "{{confirm}} to place the new module here."
|
|
167
|
-
},
|
|
168
|
-
keys: {
|
|
169
|
-
back: "←",
|
|
170
|
-
down: "↓",
|
|
171
|
-
forward: "→",
|
|
172
|
-
up: "↑"
|
|
173
147
|
}
|
|
174
148
|
}
|
|
175
149
|
},
|
|
176
150
|
type: "directory"
|
|
177
151
|
};
|
|
178
|
-
|
|
179
|
-
const MergedConfig = {
|
|
180
|
-
...BaseConfig,
|
|
181
|
-
...RemainingConfig
|
|
182
|
-
};
|
|
183
|
-
return await fileSelector(MergedConfig);
|
|
152
|
+
return await FileSelector(Config);
|
|
184
153
|
}
|
|
185
154
|
export async function SelectBuiltModulePath() {
|
|
186
|
-
const Message = `The ${Code("register")} command provided by this package will register your
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
155
|
+
const Message = `The ${Code("register")} command provided by this package will register your ` +
|
|
156
|
+
"event declaration types for you, by maintaining a module in your project which adds the " +
|
|
157
|
+
"declaration types to your registrar interfaces. The module does not need to be imported " +
|
|
158
|
+
`anywhere, it just needs to be somewhere that is recognized by your ${Code("tsconfig.json")}.`;
|
|
190
159
|
console.log(Message);
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
160
|
+
const PromptMessage = "Please choose the directory where you want the module to reside.";
|
|
161
|
+
const SelectedPath = (await SelectDirectory(PromptMessage)).path;
|
|
162
|
+
return SelectedPath;
|
|
194
163
|
}
|
|
195
164
|
export async function SelectConfigDirectoryPath() {
|
|
196
|
-
const WarningMessage =
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
const Message = `The ${Code("register")} command will need to know what choices you have
|
|
201
|
-
|
|
202
|
-
|
|
165
|
+
const WarningMessage = "If you choose a directory that is not the root of your project, then the path to " +
|
|
166
|
+
`the config file will be written to your ${Code("package.json")} file via the ` +
|
|
167
|
+
`${Code("config")} property (${Chalk.italic("i.e.")}, ` +
|
|
168
|
+
`${Code("config.electron-reactive-event-cli")}).`;
|
|
169
|
+
const Message = `The ${Code("register")} command will need to know what choices you have selected in ` +
|
|
170
|
+
`this wizard. A JSON file will be saved to your project for the ${Code("register")} ` +
|
|
171
|
+
`command to read from later.\n\n${FormatWarning(WarningMessage)}\n`;
|
|
203
172
|
console.log(Message);
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
173
|
+
const PromptMessage = "Please choose the directory where you want the config file to reside.";
|
|
174
|
+
const SelectedPath = (await SelectDirectory(PromptMessage)).path;
|
|
175
|
+
return SelectedPath;
|
|
207
176
|
}
|
|
208
177
|
function FormatWarning(Message) {
|
|
209
178
|
return `⚠️ ${Chalk.yellow("Note:")} ${Message}`;
|
|
@@ -216,13 +185,12 @@ export async function IsPackageJsonConfigNeeded(ConfigDirectoryPath, ConfigFileN
|
|
|
216
185
|
}
|
|
217
186
|
export async function SelectConfigName(SelectedDirectory) {
|
|
218
187
|
const AlreadyNeedsPackageJsonConfig = await IsPackageJsonConfigNeeded(SelectedDirectory);
|
|
219
|
-
const WarningMessage =
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
${Code("config.electron-reactive-event-cli")}).`;
|
|
188
|
+
const WarningMessage = "If you choose a name that is not the default, then the path to the config file will be " +
|
|
189
|
+
`written to your ${Code("package.json")} file via the ${Code("config")} property ` +
|
|
190
|
+
`(${Chalk.italic("i.e.")}, ${Code("config.electron-reactive-event-cli")}).`;
|
|
223
191
|
const WarningMessageFormatted = `\n\n${FormatWarning(WarningMessage)}`;
|
|
224
|
-
const Message =
|
|
225
|
-
|
|
192
|
+
const Message = "Please choose the name that the config file will have. " +
|
|
193
|
+
`${AlreadyNeedsPackageJsonConfig ? "" : WarningMessageFormatted}\n`;
|
|
226
194
|
console.log(Message);
|
|
227
195
|
let HasTriedOnce = false;
|
|
228
196
|
while (true) {
|
|
@@ -242,8 +210,8 @@ export async function SelectConfigName(SelectedDirectory) {
|
|
|
242
210
|
else {
|
|
243
211
|
const IsExtensionBad = !FileName.endsWith(JsonExtension);
|
|
244
212
|
const ExtensionMessage = ` The name must end with ${Code(JsonExtension)}.`;
|
|
245
|
-
const Message = `The name ${FileName} is not a valid JSON file name
|
|
246
|
-
|
|
213
|
+
const Message = `The name ${FileName} is not a valid JSON file name.` +
|
|
214
|
+
`${IsExtensionBad ? ExtensionMessage : ""}`;
|
|
247
215
|
console.log(Message);
|
|
248
216
|
}
|
|
249
217
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.js","sourceRoot":"","sources":["../../Source/Setup/Prompt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,+BAA+B;AAE/B,OAAO,EAAE,qBAAqB,EAA2B,MAAM,aAAa,CAAC;AAC7E,OAAO,
|
|
1
|
+
{"version":3,"file":"Prompt.js","sourceRoot":"","sources":["../../Source/Setup/Prompt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,+BAA+B;AAE/B,OAAO,EACH,IAAI,EACJ,OAAO,EAEP,YAAY,EACD,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAA2B,MAAM,aAAa,CAAC;AAC7E,OAAO,EAKH,iBAAiB,EACjB,iCAAiC,EACjC,eAAe,EACf,6BAA6B,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,SAAS,IAAI,mBAAmB,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,UAAqC,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,GAAyB,MAAM,KAAK,CAAC;AA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ClC,OAAO,IAAI,EACX,CAAC;QACG,MAAM,OAAO,GAAW,YAAY;YAChC,CAAC,CAAC,uCAAuC;YACzC,CAAC,CAAC,wDAAwD,CAAC;QAE/D,MAAM,QAAQ,GAAW,MAAM,KAAK,CAAC;YACjC,OAAO,EAAE,qBAAqB;YAC9B,OAAO;SACV,CAAC,CAAC;QAEH,YAAY,GAAG,IAAI,CAAC;QAEpB,MAAM,aAAa,GAAY,OAAgB,CAAC;QAEhD,MAAM,eAAe,GACjB,MAAM,eAAe,CAAC,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;QAE7E,IAAI,eAAe,EACnB,CAAC;YACG,OAAO,QAAQ,CAAC;QACpB,CAAC;aAED,CAAC;YACG,MAAM,cAAc,GAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;YAClE,MAAM,gBAAgB,GAAW,4BAA6B,IAAI,CAAC,aAAa,CAAE,GAAG,CAAC;YAEtF,MAAM,OAAO,GACT,YAAa,QAAS,iCAAiC;gBACvD,GAAI,cAAc,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAG,EAAE,CAAC;YAElD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC;IACL,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"setup": "./Distribution/Setup/SetupCommand.js"
|
|
5
5
|
},
|
|
6
6
|
"name": "electron-reactive-event-cli",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.46",
|
|
8
8
|
"description": "Helper package to integrate electron-reactive-event in your Electron- and React-based app.",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"electron",
|
|
@@ -43,8 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@inquirer/prompts": "^8.3.2",
|
|
46
|
-
"@sorrell/cli-utilities": "^1.0.
|
|
47
|
-
"@sorrell/inquirer-file-selector": "^1.0.3",
|
|
46
|
+
"@sorrell/cli-utilities": "^1.0.20",
|
|
48
47
|
"@sorrell/utilities": "^1.1.6",
|
|
49
48
|
"chalk": "^5.6.2",
|
|
50
49
|
"cli-table3": "^0.6.5",
|