graphile 4.11.0 → 5.0.0-0.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,24 @@
1
+ # graphile
2
+
3
+ ## 5.0.0-0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#183](https://github.com/benjie/postgraphile-private/pull/183)
8
+ [`dc4ff1268`](https://github.com/benjie/postgraphile-private/commit/dc4ff12681eeaef3a493fea5481e31f13c9f1874)
9
+ Thanks [@benjie](https://github.com/benjie)! - Enhance config printing with
10
+ full description printer and plugin ordering debugger
11
+
12
+ ## 5.0.0-0.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#176](https://github.com/benjie/postgraphile-private/pull/176)
17
+ [`7c89c2143`](https://github.com/benjie/postgraphile-private/commit/7c89c2143c73408ec63caabd68634f77f2b48511)
18
+ Thanks [@benjie](https://github.com/benjie)! - Introduce 'graphile' command
19
+ with two config-related subcommands: 'graphile config print' and 'graphile
20
+ config options'.
21
+ - Updated dependencies
22
+ [[`19e2961de`](https://github.com/benjie/postgraphile-private/commit/19e2961de67dc0b9601799bba256e4c4a23cc0cb),
23
+ [`11d6be65e`](https://github.com/benjie/postgraphile-private/commit/11d6be65e0da489f8ab3e3a8b8db145f8b2147ad)]:
24
+ - graphile-config@0.0.1-0.3
package/LICENSE.md ADDED
@@ -0,0 +1,20 @@
1
+ # The MIT License (MIT)
2
+
3
+ Copyright © `2023` Benjie Gillam
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the “Software”), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ 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, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # graphile
2
+
3
+ Graphile makes a number of open source projects, some of the headline projects
4
+ include [PostGraphile](https://postgraphile.org),
5
+ [Graphile Worker](https://github.com/graphile/worker),
6
+ [Graphile Migrate](https://github.com/graphile/migrate) and
7
+ [Gra*fast*](https://grafast.org), but there are many others. This module is
8
+ intended to be a CLI that will help when interacting with these various
9
+ projects, helping you to create, debug, update, interact with and maintain them.
10
+
11
+ At the moment, it doesn't contain much, but it should grow over time.
12
+
13
+ ## `graphile config print`
14
+
15
+ Prints out the configuration from your `graphile.config.mjs` (or similar) file
16
+ in an easy to read/digest form.
17
+
18
+ ## `graphile config options`
19
+
20
+ Indicates the full list of options that you may specify in your config file.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli-run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-run.d.ts","sourceRoot":"","sources":["../src/cli-run.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const cli_1 = require("graphile-config/cli");
5
+ const cli_js_1 = require("./cli.js");
6
+ (0, cli_1.runCli)(cli_js_1.options, cli_js_1.run);
7
+ //# sourceMappingURL=cli-run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-run.js","sourceRoot":"","sources":["../src/cli-run.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAE7C,qCAAwC;AAExC,IAAA,YAAM,EAAC,gBAAO,EAAE,YAAG,CAAC,CAAC"}
package/dist/cli.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /// <reference types="yargs" />
2
+ import type { ArgsFromOptions, Argv } from "graphile-config/cli";
3
+ export declare function options(yargs: Argv): Argv<{}>;
4
+ export declare function run(_args: ArgsFromOptions<typeof options>): Promise<void>;
5
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAGjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,YAiBlC;AACD,wBAAsB,GAAG,CAAC,KAAK,EAAE,eAAe,CAAC,OAAO,OAAO,CAAC,iBAE/D"}
package/dist/cli.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.run = exports.options = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const configCmd = tslib_1.__importStar(require("./commands/config/cli.js"));
6
+ function options(yargs) {
7
+ return yargs
8
+ .parserConfiguration({
9
+ // Last option wins - do NOT make duplicates into arrays!
10
+ "duplicate-arguments-array": false,
11
+ })
12
+ .example("$0 config options -C graphile.config.ts", "Output the options available to be used in the given config file, based on the imports it contains.")
13
+ .command("config", "Tools for helping with config", (yargs) => configCmd.options(yargs), configCmd.run)
14
+ .demandCommand();
15
+ }
16
+ exports.options = options;
17
+ async function run(_args) {
18
+ // Do nothing
19
+ }
20
+ exports.run = run;
21
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;AAEA,4EAAsD;AACtD,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,mBAAmB,CAAC;QACnB,yDAAyD;QACzD,2BAA2B,EAAE,KAAK;KACnC,CAAC;SACD,OAAO,CACN,yCAAyC,EACzC,qGAAqG,CACtG;SACA,OAAO,CACN,QAAQ,EACR,+BAA+B,EAC/B,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,EACnC,SAAS,CAAC,GAAG,CACd;SACA,aAAa,EAAE,CAAC;AACrB,CAAC;AAjBD,0BAiBC;AACM,KAAK,UAAU,GAAG,CAAC,KAAsC;IAC9D,aAAa;AACf,CAAC;AAFD,kBAEC"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="yargs" />
2
+ import type { ArgsFromOptions, Argv } from "graphile-config/cli";
3
+ export declare function options(yargs: Argv): Argv<{}>;
4
+ export declare function run(_args: ArgsFromOptions<typeof options>): void;
5
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/commands/config/cli.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAKjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,YAelC;AAED,wBAAgB,GAAG,CAAC,KAAK,EAAE,eAAe,CAAC,OAAO,OAAO,CAAC,QAGzD"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.run = exports.options = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const optionsCmd = tslib_1.__importStar(require("./options/cli.js"));
6
+ const printCmd = tslib_1.__importStar(require("./print/cli.js"));
7
+ function options(yargs) {
8
+ return yargs
9
+ .command("options", "Output the options your config may contain", optionsCmd.options, optionsCmd.run)
10
+ .command("print", "Prints your resolved configuration", printCmd.options, printCmd.run)
11
+ .demandCommand();
12
+ }
13
+ exports.options = options;
14
+ function run(_args) {
15
+ // This should never happen, yargs handles it for us
16
+ throw new Error("Subcommand required");
17
+ }
18
+ exports.run = run;
19
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/config/cli.ts"],"names":[],"mappings":";;;;AAEA,qEAA+C;AAC/C,iEAA2C;AAE3C,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,OAAO,CACN,SAAS,EACT,4CAA4C,EAC5C,UAAU,CAAC,OAAO,EAClB,UAAU,CAAC,GAAG,CACf;SACA,OAAO,CACN,OAAO,EACP,oCAAoC,EACpC,QAAQ,CAAC,OAAO,EAChB,QAAQ,CAAC,GAAG,CACb;SACA,aAAa,EAAE,CAAC;AACrB,CAAC;AAfD,0BAeC;AAED,SAAgB,GAAG,CAAC,KAAsC;IACxD,oDAAoD;IACpD,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;AACzC,CAAC;AAHD,kBAGC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="yargs" />
2
+ import type { ArgsFromOptions, Argv } from "graphile-config/cli";
3
+ export declare function options(yargs: Argv): Argv<{
4
+ config: string | undefined;
5
+ }>;
6
+ export declare function run(args: ArgsFromOptions<typeof options>): void;
7
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/options/cli.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAIjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;GAYlC;AACD,wBAAgB,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,OAAO,OAAO,CAAC,QAGxD"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.run = exports.options = void 0;
4
+ const main_js_1 = require("./main.js");
5
+ function options(yargs) {
6
+ return yargs
7
+ .example("$0 -C graphile.config.ts", "Read and parse graphile.config.ts, and determine the options available for presets therein")
8
+ .option("config", {
9
+ alias: "C",
10
+ type: "string",
11
+ description: "The path to the config file",
12
+ normalize: true,
13
+ });
14
+ }
15
+ exports.options = options;
16
+ function run(args) {
17
+ const text = (0, main_js_1.main)({ filename: args.config });
18
+ console.log(text);
19
+ }
20
+ exports.run = run;
21
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/commands/config/options/cli.ts"],"names":[],"mappings":";;;AAEA,uCAAiC;AAEjC,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,OAAO,CACN,0BAA0B,EAC1B,4FAA4F,CAC7F;SACA,MAAM,CAAC,QAAQ,EAAE;QAChB,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6BAA6B;QAC1C,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;AACP,CAAC;AAZD,0BAYC;AACD,SAAgB,GAAG,CAAC,IAAqC;IACvD,MAAM,IAAI,GAAG,IAAA,cAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACpB,CAAC;AAHD,kBAGC"}
@@ -0,0 +1,4 @@
1
+ export declare function main(options: {
2
+ filename?: string;
3
+ }): string;
4
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/options/main.ts"],"names":[],"mappings":"AAOA,wBAAgB,IAAI,CAAC,OAAO,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,UAqTlD"}
@@ -0,0 +1,339 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.main = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const vfs_1 = require("@typescript/vfs");
6
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
7
+ const ts = tslib_1.__importStar(require("typescript"));
8
+ function main(options) {
9
+ const { filename = "graphile.config.ts" } = options;
10
+ const filenameInJs = filename.replace(/\.([mc]?)(ts)$/, ".$1js");
11
+ let outputText = ``;
12
+ let last = "";
13
+ let inCode = false;
14
+ function out(text = "") {
15
+ if (text === "" && last === "" && !inCode) {
16
+ return;
17
+ }
18
+ let exitCode = false;
19
+ if (!inCode && text.startsWith("```")) {
20
+ inCode = true;
21
+ }
22
+ else if (text.startsWith("```")) {
23
+ exitCode = true;
24
+ }
25
+ outputText += (inCode ? chalk_1.default.green(text) : text) + "\n";
26
+ last = text;
27
+ if (exitCode) {
28
+ inCode = false;
29
+ }
30
+ }
31
+ out(chalk_1.default.whiteBright.bold(`# Custom \`GraphileConfig.Preset\` Reference`));
32
+ out();
33
+ out(`\
34
+ This reference was autogenerated by \`graphile config options\` using
35
+ your local configuration file to determine the plugins and presets (and
36
+ hence the configuration options) available. You should regenerate it
37
+ from time to time (for example, when you upgrade a module, or add/remove
38
+ modules).\
39
+ `);
40
+ out();
41
+ const compilerOpts = {
42
+ module: ts.ModuleKind.Node16,
43
+ target: ts.ScriptTarget.ESNext,
44
+ strict: true,
45
+ esModuleInterop: true,
46
+ skipLibCheck: true,
47
+ skipDefaultLibCheck: true,
48
+ moduleResolution: ts.ModuleResolutionKind.Node16,
49
+ allowJs: true,
50
+ };
51
+ /*
52
+ const compilerOptions = {
53
+ strict: true,
54
+ target: ts.ScriptTarget.ES2015,
55
+ typeRoots: [],
56
+ lib: ["es5"],
57
+ skipDefaultLibCheck: true,
58
+ skipLibCheck: true,
59
+ moduleResolution: ts.ModuleResolutionKind.NodeJs,
60
+ module: ts.ModuleKind.ES2015,
61
+ };
62
+ */
63
+ const fsMap = new Map();
64
+ const FAKE_FILENAME = "graphileConfigInspection.ts";
65
+ // If using imports where the types don't directly match up to their FS representation (like the
66
+ // imports for node) then use triple-slash directives to make sure globals are set up first.
67
+ const BASE_CONTENT = `\
68
+ /// <reference types="node" />
69
+ import "graphile-config";
70
+ import {} from './${filenameInJs}';
71
+ type Digest<T> = { [TKey in keyof T]: T[TKey] } & {};
72
+ const preset: GraphileConfig.Preset`;
73
+ fsMap.set(FAKE_FILENAME, BASE_CONTENT);
74
+ // By providing a project root, then the system knows how to resolve node_modules correctly
75
+ const projectRoot = process.cwd();
76
+ const system = (0, vfs_1.createFSBackedSystem)(fsMap, projectRoot, ts);
77
+ const env = (0, vfs_1.createVirtualTypeScriptEnvironment)(system, [FAKE_FILENAME, filename], ts, compilerOpts);
78
+ /*
79
+ {
80
+ const content = BASE_CONTENT;
81
+ env.updateFile(FAKE_FILENAME, content);
82
+ const info = env.languageService.getQuickInfoAtPosition(
83
+ FAKE_FILENAME,
84
+ content.length,
85
+ );
86
+ //out(prettyDocumentation(info?.documentation));
87
+ //out();
88
+ const content2 =
89
+ BASE_CONTENT + `;\ntype Config = Digest<GraphileConfig.Preset>;`;
90
+ env.updateFile(FAKE_FILENAME, content2);
91
+ const info2 = env.languageService.getQuickInfoAtPosition(
92
+ FAKE_FILENAME,
93
+ content.length + 8,
94
+ );
95
+
96
+ out("```ts");
97
+ //console.dir(info2);
98
+ out(prettyDisplayParts(info2?.displayParts, "="));
99
+ out("```");
100
+ out();
101
+ }
102
+ */
103
+ const keys = [];
104
+ {
105
+ const content = BASE_CONTENT + " = {";
106
+ env.updateFile(FAKE_FILENAME, content);
107
+ const completions = env.languageService.getCompletionsAtPosition(FAKE_FILENAME, content.length, {});
108
+ if (completions?.entries) {
109
+ for (const entry of completions.entries) {
110
+ if (entry.kind === "property") {
111
+ keys.push(entry.name);
112
+ }
113
+ }
114
+ }
115
+ //console.dir(completions);
116
+ }
117
+ keys.sort();
118
+ ["extends", "plugins", "disablePlugins"].reverse().forEach((key) => {
119
+ const i = keys.indexOf(key);
120
+ if (i >= 0) {
121
+ keys.splice(i, 1);
122
+ }
123
+ keys.unshift(key);
124
+ });
125
+ const accessKey = (key) => {
126
+ // TODO: improve?
127
+ if (/^[A-Za-z0-9_]+$/.test(key)) {
128
+ return `.${key}`;
129
+ }
130
+ else {
131
+ return `[${JSON.stringify(key)}]`;
132
+ }
133
+ };
134
+ let later = [];
135
+ function outLater(str) {
136
+ later.push(str);
137
+ }
138
+ const entries = [];
139
+ for (const key of keys) {
140
+ // Always an object, unless...
141
+ const isArray = [
142
+ "disablePlugins",
143
+ "plugins",
144
+ "extends",
145
+ "pgConfigs",
146
+ ].includes(key);
147
+ if (isArray) {
148
+ const contentWithProperty = BASE_CONTENT + ` = [];\npreset${accessKey(key)}`;
149
+ env.updateFile(FAKE_FILENAME, contentWithProperty);
150
+ const info = env.languageService.getQuickInfoAtPosition(FAKE_FILENAME, contentWithProperty.length);
151
+ entries.push(`${chalk_1.default.cyanBright(key)}?: ${prettyDisplayParts(info?.displayParts, ":")
152
+ .replace(/\| undefined$/, "")
153
+ .trim()}`);
154
+ }
155
+ else {
156
+ const SUFFIX1 = ` = {`;
157
+ const SUFFIX2 = `};\n`;
158
+ const contentWithProperty = BASE_CONTENT +
159
+ ` = Object.create(null);\npreset${accessKey(key)}${SUFFIX1}${SUFFIX2}`;
160
+ env.updateFile(FAKE_FILENAME, contentWithProperty);
161
+ const info = env.languageService.getQuickInfoAtPosition(FAKE_FILENAME, contentWithProperty.length - SUFFIX1.length - SUFFIX2.length);
162
+ entries.push(`${chalk_1.default.cyanBright(key)}?: ${prettyDisplayParts(info?.displayParts, ":")};`);
163
+ const completions = env.languageService.getCompletionsAtPosition(FAKE_FILENAME, contentWithProperty.length - SUFFIX2.length, {});
164
+ const relevant = completions?.entries
165
+ .filter((e) => e.kind === "property")
166
+ .map((r) => r.name)
167
+ .sort();
168
+ outLater(chalk_1.default.whiteBright.bold(`## ${chalk_1.default.cyanBright.bold(key)}`));
169
+ outLater();
170
+ outLater(prettyDocumentation(info?.documentation));
171
+ outLater();
172
+ if (relevant) {
173
+ const subentries = [];
174
+ let laterStill = [];
175
+ const outLaterStill = (line) => {
176
+ laterStill.push(line);
177
+ };
178
+ for (const subkey of relevant) {
179
+ const contentWithSubpropertyAccess = contentWithProperty +
180
+ `preset${accessKey(key)}!${accessKey(subkey)}`;
181
+ env.updateFile(FAKE_FILENAME, contentWithSubpropertyAccess);
182
+ const info = env.languageService.getQuickInfoAtPosition(FAKE_FILENAME, contentWithSubpropertyAccess.length);
183
+ subentries.push(`${chalk_1.default.greenBright.bold(subkey)}?: ${prettyDisplayParts(info?.displayParts, ":")
184
+ .replace(/\| undefined$/, "")
185
+ .trim()};`);
186
+ /*
187
+ const def = env.languageService.getDefinitionAtPosition(
188
+ FAKE_FILENAME,
189
+ contentWithSubpropertyAccess.length,
190
+ );
191
+ const hints = env.languageService.provideInlayHints(
192
+ FAKE_FILENAME,
193
+ ts.createTextSpan(
194
+ contentWithProperty.length,
195
+ contentWithSubpropertyAccess.length - contentWithProperty.length,
196
+ ),
197
+ undefined,
198
+ );
199
+ const com = env.languageService.getDocCommentTemplateAtPosition(
200
+ FAKE_FILENAME,
201
+ contentWithProperty.length,
202
+ );
203
+ console.log(key, subkey, info, def, hints, com);
204
+ */
205
+ outLaterStill(chalk_1.default.whiteBright(`### ${chalk_1.default.cyanBright.bold(key)}.${chalk_1.default.greenBright.bold(subkey)}`));
206
+ outLaterStill();
207
+ const displayParts = prettyDisplayParts(info?.displayParts, ":");
208
+ outLaterStill(`${chalk_1.default.greenBright.bold("Type")}: \`${displayParts
209
+ ? chalk_1.default.whiteBright(displayParts)
210
+ : chalk_1.default.gray("unknown")}\``);
211
+ outLaterStill();
212
+ outLaterStill(prettyDocumentation(info?.documentation));
213
+ outLaterStill();
214
+ }
215
+ if (subentries.length) {
216
+ outLater("```ts");
217
+ outLater(`{`);
218
+ for (const entry of subentries) {
219
+ outLater(" " + entry);
220
+ }
221
+ outLater("}");
222
+ outLater("```");
223
+ outLater();
224
+ }
225
+ for (const line of laterStill) {
226
+ outLater(line);
227
+ }
228
+ laterStill = [];
229
+ }
230
+ }
231
+ /*
232
+ if (completions?.entries) {
233
+ for (const entry of completions.entries) {
234
+ if (entry.kind === "property") {
235
+ keys.push(entry.name);
236
+ }
237
+ }
238
+ }
239
+ */
240
+ }
241
+ if (entries.length) {
242
+ out("```ts");
243
+ out(`{`);
244
+ for (const entry of entries) {
245
+ out(" " + entry);
246
+ }
247
+ out("}");
248
+ out("```");
249
+ out();
250
+ }
251
+ for (const line of later) {
252
+ out(line);
253
+ }
254
+ later = [];
255
+ return outputText.trim() + "\n";
256
+ }
257
+ exports.main = main;
258
+ /*
259
+ debugger;
260
+
261
+ const host = createVirtualCompilerHost(system, compilerOpts, ts);
262
+ const program = ts.createProgram({
263
+ rootNames: [...fsMap.keys()],
264
+ options: compilerOpts,
265
+ host: host.compilerHost,
266
+ });
267
+ const checker = program.getTypeChecker();
268
+
269
+ // This will update the fsMap with new files
270
+ // for the .d.ts and .js files
271
+ program.emit();
272
+
273
+ // Now I can look at the AST for the .ts file too
274
+ const index = program.getSourceFile(FAKE_FILENAME)!;
275
+ const symbols = checker.getSymbolsInScope(index, ts.SymbolFlags.Variable);
276
+ const symbol = symbols.find((s) => s.name === "preset");
277
+ console.log(symbol);
278
+ if (symbol) {
279
+ const type = checker.getDeclaredTypeOfSymbol(symbol);
280
+ console.log(type.getApparentProperties());
281
+ console.dir(type.get);
282
+ const properties = type.getProperties();
283
+ console.dir(properties);
284
+ }
285
+ ts.forEachChild(index, (node) => {
286
+ if (isVariableStatement(node)) {
287
+ console.log(node.getText());
288
+ const node2 = node.declarationList.declarations[0];
289
+ console.log(node2.getText());
290
+ const type = checker.getTypeAtLocation(node2);
291
+ const properties = type.getProperties();
292
+ // const properties = checker.getDeclaredTypeOfSymbol(symbol).getProperties();
293
+ console.dir(properties);
294
+ }
295
+ });
296
+ */
297
+ function prettyDisplayParts(displayParts, trimUntil = ":") {
298
+ if (!displayParts) {
299
+ return "";
300
+ }
301
+ let found = !trimUntil;
302
+ let depth = 0;
303
+ let str = "";
304
+ for (const { text } of displayParts) {
305
+ if (found) {
306
+ str += text;
307
+ }
308
+ else if (text === "(" || text === "[") {
309
+ depth++;
310
+ }
311
+ else if (text === ")" || text === "]") {
312
+ depth--;
313
+ }
314
+ else if (text === trimUntil && depth === 0) {
315
+ found = true;
316
+ }
317
+ }
318
+ return str.trim();
319
+ }
320
+ function prettyDocumentation(parts) {
321
+ if (!parts) {
322
+ return "";
323
+ }
324
+ let text = "";
325
+ for (const part of parts) {
326
+ switch (part.kind) {
327
+ case "text": {
328
+ text += part.text;
329
+ break;
330
+ }
331
+ default: {
332
+ text += part.text;
333
+ break;
334
+ }
335
+ }
336
+ }
337
+ return text.trim();
338
+ }
339
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/commands/config/options/main.ts"],"names":[],"mappings":";;;;AAAA,yCAGyB;AACzB,0DAA0B;AAC1B,uDAAiC;AAEjC,SAAgB,IAAI,CAAC,OAA8B;IACjD,MAAM,EAAE,QAAQ,GAAG,oBAAoB,EAAE,GAAG,OAAO,CAAC;IACpD,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAEjE,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,SAAS,GAAG,CAAC,IAAI,GAAG,EAAE;QACpB,IAAI,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;YACzC,OAAO;SACR;QACD,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YACrC,MAAM,GAAG,IAAI,CAAC;SACf;aAAM,IAAI,IAAI,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I,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,EAAE;YACvC,KAAK,EAAE,CAAC;SACT;aAAM,IAAI,IAAI,KAAK,SAAS,IAAI,KAAK,KAAK,CAAC,EAAE;YAC5C,KAAK,GAAG,IAAI,CAAC;SACd;KACF;IACD,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;AACpB,CAAC;AAED,SAAS,mBAAmB,CAC1B,KAAsD;IAEtD,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAAC;KACX;IACD,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,QAAQ,IAAI,CAAC,IAAI,EAAE;YACjB,KAAK,MAAM,CAAC,CAAC;gBACX,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC;gBAClB,MAAM;aACP;YACD,OAAO,CAAC,CAAC;gBACP,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC;gBAClB,MAAM;aACP;SACF;KACF;IACD,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;AACrB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /// <reference types="yargs" />
2
+ import type { ArgsFromOptions, Argv } from "graphile-config/cli";
3
+ export declare function options(yargs: Argv): Argv<{
4
+ config: string | undefined;
5
+ } & {
6
+ full: boolean | undefined;
7
+ } & {
8
+ "debug-order": boolean | undefined;
9
+ }>;
10
+ type Opts = ArgsFromOptions<typeof options>;
11
+ export declare function run(args: Opts): Promise<void>;
12
+ export {};
13
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/print/cli.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAYjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;;;;;GAuBlC;AAED,KAAK,IAAI,GAAG,eAAe,CAAC,OAAO,OAAO,CAAC,CAAC;AAE5C,wBAAsB,GAAG,CAAC,IAAI,EAAE,IAAI,iBAsCnC"}
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.run = exports.options = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const graphile_config_1 = require("graphile-config");
7
+ const cli_1 = require("graphile-config/cli");
8
+ const load_1 = require("graphile-config/load");
9
+ const util_1 = require("util");
10
+ const stripAnsi_js_1 = require("../../../stripAnsi.js");
11
+ const inspectOpts = {
12
+ colors: true,
13
+ };
14
+ function options(yargs) {
15
+ return yargs
16
+ .example("$0 -C graphile.config.ts", "Print your graphile.config.ts")
17
+ .option("config", {
18
+ alias: "C",
19
+ type: "string",
20
+ description: "The path to the config file",
21
+ normalize: true,
22
+ })
23
+ .option("full", {
24
+ alias: "f",
25
+ type: "boolean",
26
+ description: "Print full details, do not summarize",
27
+ normalize: true,
28
+ })
29
+ .option("debug-order", {
30
+ alias: "o",
31
+ type: "boolean",
32
+ description: "Include details to help debug the ordering of plugins",
33
+ normalize: true,
34
+ });
35
+ // TODO: add options for debugging things like: where did this option come
36
+ // from, why are the plugins in this order, etc.
37
+ }
38
+ exports.options = options;
39
+ async function run(args) {
40
+ const opts = {
41
+ ...args,
42
+ // debug-order implies full currently
43
+ full: args.full || args.debugOrder,
44
+ };
45
+ const userPreset = await (0, load_1.loadConfig)(opts.config);
46
+ if (!userPreset) {
47
+ console.error("Failed to load config, please check the file exists");
48
+ process.exit(1);
49
+ }
50
+ const resolvedPreset = (0, graphile_config_1.resolvePresets)([userPreset]);
51
+ console.log(printPlugins(opts, resolvedPreset.plugins));
52
+ for (const key of Object.keys(resolvedPreset)) {
53
+ if (key === "plugins" || key === "extends" || key === "disablePlugins") {
54
+ continue;
55
+ }
56
+ console.log();
57
+ console.log(chalk_1.default.whiteBright.bold(key) + ":");
58
+ const value = resolvedPreset[key];
59
+ if (Array.isArray(value)) {
60
+ console.log((0, util_1.inspect)(value, inspectOpts));
61
+ }
62
+ else if (typeof value === "object" && value !== null) {
63
+ const keys = Object.keys(value);
64
+ if (keys.length) {
65
+ for (const key of keys) {
66
+ const val = value[key];
67
+ console.log(` ${chalk_1.default.blueBright(key)}: ${printValue(val, 4)}`);
68
+ }
69
+ }
70
+ else {
71
+ console.log(` ${chalk_1.default.gray("-empty-")}`);
72
+ }
73
+ }
74
+ else {
75
+ console.log((0, util_1.inspect)(value, inspectOpts));
76
+ }
77
+ }
78
+ }
79
+ exports.run = run;
80
+ function printAPB(opts, strs, type, plugins, index) {
81
+ if (!strs || strs.length === 0) {
82
+ return chalk_1.default.gray("-");
83
+ }
84
+ else {
85
+ if (opts.debugOrder && (type === "after" || type === "before")) {
86
+ const matches = strs.map((str) => {
87
+ const hits = [];
88
+ for (let i = 0, l = plugins.length; i < l; i++) {
89
+ const plugin = plugins[i];
90
+ if (plugin.provides?.includes(str)) {
91
+ const good = type === "after" ? i < index : i > index;
92
+ hits.push({
93
+ plugin,
94
+ index: i,
95
+ good,
96
+ });
97
+ }
98
+ }
99
+ const allGood = hits.every((h) => h.good);
100
+ return `${hits.length === 0
101
+ ? chalk_1.default.strikethrough(str)
102
+ : allGood
103
+ ? chalk_1.default.green(str)
104
+ : chalk_1.default.red(str)}${hits.length > 0 ? chalk_1.default.gray(`[${hits.map((h) => h.index + 1)}]`) : ""}`;
105
+ });
106
+ return chalk_1.default.cyan(matches.join(" "));
107
+ }
108
+ else {
109
+ return chalk_1.default.cyan(strs.join(" "));
110
+ }
111
+ }
112
+ }
113
+ function printPlugins(opts, plugins) {
114
+ if (!plugins || plugins.length === 0) {
115
+ return "";
116
+ }
117
+ return `${chalk_1.default.whiteBright.bold("plugins")}:
118
+ ${plugins.map((p, i) => printPlugin(opts, p, plugins, i)).join("\n")}`;
119
+ }
120
+ function printPlugin(opts, plugin, plugins, index) {
121
+ const { full, debugOrder } = opts;
122
+ const left = ` ${debugOrder ? chalk_1.default.whiteBright(`${index + 1}. `.padStart(5, " ")) : ""}${chalk_1.default.greenBright.bold(plugin.name)}${chalk_1.default.whiteBright("@")}${chalk_1.default.gray(plugin.version)}${plugin.description || debugOrder ? (full ? ":" : ": ") : ""}`;
123
+ const indent = debugOrder ? ` ` : ` `;
124
+ if (full) {
125
+ return `${left}${debugOrder
126
+ ? `
127
+ ${indent}${chalk_1.default.whiteBright("After:")} ${printAPB(opts, plugin.after, "after", plugins, index)}
128
+ ${indent}${chalk_1.default.whiteBright("Provides:")} ${printAPB(opts, plugin.provides, "provides", plugins, index)}
129
+ ${indent}${chalk_1.default.whiteBright("Before:")} ${printAPB(opts, plugin.before, "before", plugins, index)}`
130
+ : ""}${plugin.description
131
+ ? `
132
+ ${indent}${chalk_1.default.dim(plugin.description.replace(/\n/g, `\n${indent}`))}`
133
+ : ``}
134
+ `;
135
+ }
136
+ else {
137
+ const l = (0, stripAnsi_js_1.stripAnsi)(left).length;
138
+ const MAX = 50;
139
+ const SCREEN_WIDTH = (0, cli_1.getTerminalWidth)();
140
+ const padL = Math.max(MAX, l) - l;
141
+ const pad = " ".repeat(Math.max(0, padL));
142
+ return `${left}${plugin.description
143
+ ? `${pad}${chalk_1.default.dim(oneLine(plugin.description, SCREEN_WIDTH - pad.length - (0, stripAnsi_js_1.stripAnsi)(left).length))}`
144
+ : ""}`;
145
+ }
146
+ }
147
+ function oneLine(str, max = 60, suffix = "...") {
148
+ const single = str.replace(/[\r\n\t]+/g, " ");
149
+ if (single.length > max - suffix.length) {
150
+ return single.slice(0, max - suffix.length) + suffix;
151
+ }
152
+ else {
153
+ return single;
154
+ }
155
+ }
156
+ function printValue(value, indentation) {
157
+ const indent = " ".repeat(indentation);
158
+ return (0, util_1.inspect)(value, inspectOpts).replace(/\n/g, `\n${indent}`);
159
+ }
160
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/commands/config/print/cli.ts"],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package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export declare const ANSI_REGEXP: RegExp;
2
+ export declare function stripAnsi(str: string): string;
3
+ //# sourceMappingURL=stripAnsi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripAnsi.d.ts","sourceRoot":"","sources":["../src/stripAnsi.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,QAEsJ,CAAC;AAC/K,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stripAnsi = exports.ANSI_REGEXP = void 0;
4
+ // Extracted from https://github.com/chalk/ansi-regex MIT license
5
+ // Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
6
+ // Copyright (c) Benjie (https://twitter.com/benjie)
7
+ exports.ANSI_REGEXP =
8
+ // eslint-disable-next-line no-control-regex, no-useless-escape
9
+ /[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)|(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))/g;
10
+ function stripAnsi(str) {
11
+ return str.replace(exports.ANSI_REGEXP, "");
12
+ }
13
+ exports.stripAnsi = stripAnsi;
14
+ //# sourceMappingURL=stripAnsi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripAnsi.js","sourceRoot":"","sources":["../src/stripAnsi.ts"],"names":[],"mappings":";;;AAAA,iEAAiE;AACjE,kFAAkF;AAClF,oDAAoD;AACvC,QAAA,WAAW;AACtB,+DAA+D;AAC/D,4KAA4K,CAAC;AAC/K,SAAgB,SAAS,CAAC,GAAW;IACnC,OAAO,GAAG,CAAC,OAAO,CAAC,mBAAW,EAAE,EAAE,CAAC,CAAC;AACtC,CAAC;AAFD,8BAEC"}
package/package.json CHANGED
@@ -1,24 +1,46 @@
1
1
  {
2
2
  "name": "graphile",
3
- "version": "4.11.0",
3
+ "version": "5.0.0-0.2",
4
+ "description": "Swiss army knife for dealing with all things Graphile",
5
+ "main": "dist/index.js",
6
+ "bin": "dist/cli-run.js",
7
+ "types": "dist/index.d.ts",
4
8
  "scripts": {
5
- "watch": "sleep 1000000000",
6
9
  "test": "true",
7
- "prepack": "true"
10
+ "prepack": "tsc -b"
8
11
  },
9
- "description": "You probably want postgraphile or graphile-build",
10
- "main": "index.js",
11
12
  "repository": {
12
13
  "type": "git",
13
- "url": "git+https://github.com/graphile/graphile-engine.git"
14
+ "url": "git+https://github.com/graphile/heart.git"
14
15
  },
16
+ "keywords": [
17
+ "lru",
18
+ "graphile",
19
+ "graphite"
20
+ ],
15
21
  "author": "Benjie Gillam <code@benjiegillam.com>",
22
+ "license": "MIT",
16
23
  "bugs": {
17
- "url": "https://github.com/graphile/graphile-engine/issues"
24
+ "url": "https://github.com/graphile/heart/issues"
25
+ },
26
+ "homepage": "https://github.com/graphile/heart/tree/main/utils/graphile",
27
+ "engines": {
28
+ "node": ">=14.17"
18
29
  },
19
- "homepage": "https://www.graphile.org",
20
30
  "files": [
21
- "index.js"
31
+ "dist"
22
32
  ],
23
- "gitHead": "742133b9064cd64d61e45edc981261a036d56c7f"
24
- }
33
+ "dependencies": {
34
+ "@typescript/vfs": "^1.4.0",
35
+ "chalk": "^4.1.2",
36
+ "graphile-config": "^0.0.1-0.3",
37
+ "tslib": "^2.4.0",
38
+ "typescript": "^5.0.0-beta"
39
+ },
40
+ "devDependencies": {
41
+ "@types/jest": "^27.5.1",
42
+ "@types/node": "^16.11.15",
43
+ "jest": "^28.1.0",
44
+ "ts-node": "^10.9.1"
45
+ }
46
+ }
package/index.js DELETED
@@ -1,3 +0,0 @@
1
- throw new Error(
2
- "This package is a placeholder, you probably want graphile-build or postgraphile currently"
3
- );