bingo 0.5.2 → 0.5.3
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/lib/cli/importers/tryImportTemplate.d.ts +1 -1
- package/lib/cli/importers/tryImportTemplate.d.ts.map +1 -1
- package/lib/cli/loggers/logHelpText.d.ts +1 -1
- package/lib/cli/loggers/logHelpText.d.ts.map +1 -1
- package/lib/cli/loggers/logHelpText.js.map +1 -1
- package/lib/cli/loggers/logSchemasHelpOptions.js +1 -1
- package/lib/cli/loggers/logSchemasHelpOptions.js.map +1 -1
- package/lib/cli/prompts/promptForDirectory.d.ts +3 -3
- package/lib/cli/prompts/promptForDirectory.d.ts.map +1 -1
- package/lib/cli/prompts/promptForDirectory.js.map +1 -1
- package/lib/cli/prompts/promptForOptionSchemas.d.ts +1 -1
- package/lib/cli/prompts/promptForOptionSchemas.d.ts.map +1 -1
- package/lib/cli/prompts/promptForOptionSchemas.js.map +1 -1
- package/lib/cli/runCLI.d.ts +3 -3
- package/lib/cli/runCLI.d.ts.map +1 -1
- package/lib/cli/runCLI.js.map +1 -1
- package/lib/cli/runTemplateCLI.d.ts +3 -1
- package/lib/cli/runTemplateCLI.d.ts.map +1 -1
- package/lib/cli/runTemplateCLI.js +2 -0
- package/lib/cli/runTemplateCLI.js.map +1 -1
- package/lib/cli/setup/runModeSetup.d.ts +3 -3
- package/lib/cli/setup/runModeSetup.d.ts.map +1 -1
- package/lib/cli/setup/runModeSetup.js +10 -4
- package/lib/cli/setup/runModeSetup.js.map +1 -1
- package/lib/cli/transition/readConfigSettings.d.ts +5 -0
- package/lib/cli/transition/readConfigSettings.d.ts.map +1 -0
- package/lib/cli/transition/readConfigSettings.js +18 -0
- package/lib/cli/transition/readConfigSettings.js.map +1 -0
- package/lib/cli/transition/readConfigSettings.test.d.ts +2 -0
- package/lib/cli/transition/readConfigSettings.test.d.ts.map +1 -0
- package/lib/cli/transition/readConfigSettings.test.js +40 -0
- package/lib/cli/transition/readConfigSettings.test.js.map +1 -0
- package/lib/cli/transition/runModeTransition.d.ts +3 -3
- package/lib/cli/transition/runModeTransition.d.ts.map +1 -1
- package/lib/cli/transition/runModeTransition.js +16 -5
- package/lib/cli/transition/runModeTransition.js.map +1 -1
- package/lib/cli/transition/runModeTransition.test.js +20 -4
- package/lib/cli/transition/runModeTransition.test.js.map +1 -1
- package/lib/cli/transition/templateMismatchError.d.ts +4 -0
- package/lib/cli/transition/templateMismatchError.d.ts.map +1 -0
- package/lib/cli/transition/templateMismatchError.js +16 -0
- package/lib/cli/transition/templateMismatchError.js.map +1 -0
- package/lib/cli/transition/templateMismatchError.test.d.ts +2 -0
- package/lib/cli/transition/templateMismatchError.test.d.ts.map +1 -0
- package/lib/cli/transition/templateMismatchError.test.js +36 -0
- package/lib/cli/transition/templateMismatchError.test.js.map +1 -0
- package/lib/config/tryImportConfig.d.ts +1 -1
- package/lib/config/tryImportConfig.d.ts.map +1 -1
- package/lib/config/tryImportConfig.js +2 -2
- package/lib/config/tryImportConfig.js.map +1 -1
- package/lib/creators/createTemplate.d.ts +2 -2
- package/lib/creators/createTemplate.d.ts.map +1 -1
- package/lib/creators/createTemplate.js +3 -1
- package/lib/creators/createTemplate.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/predicates/isCreatedConfig.d.ts +3 -8
- package/lib/predicates/isCreatedConfig.d.ts.map +1 -1
- package/lib/predicates/isCreatedConfig.js.map +1 -1
- package/lib/predicates/isCreatedConfig.test.js +1 -1
- package/lib/predicates/isCreatedConfig.test.js.map +1 -1
- package/lib/predicates/isTemplate.d.ts +2 -1
- package/lib/predicates/isTemplate.d.ts.map +1 -1
- package/lib/predicates/isTemplate.js.map +1 -1
- package/lib/predicates/isTemplateConfig.d.ts +4 -0
- package/lib/predicates/isTemplateConfig.d.ts.map +1 -0
- package/lib/predicates/isTemplateConfig.js +8 -0
- package/lib/predicates/isTemplateConfig.js.map +1 -0
- package/lib/predicates/isTemplateConfig.test.d.ts +2 -0
- package/lib/predicates/isTemplateConfig.test.d.ts.map +1 -0
- package/lib/predicates/isTemplateConfig.test.js +32 -0
- package/lib/predicates/isTemplateConfig.test.js.map +1 -0
- package/lib/producers/produceTemplate.d.ts +24 -2
- package/lib/producers/produceTemplate.d.ts.map +1 -1
- package/lib/producers/produceTemplate.js +2 -0
- package/lib/producers/produceTemplate.js.map +1 -1
- package/lib/runners/runTemplate.d.ts +31 -6
- package/lib/runners/runTemplate.d.ts.map +1 -1
- package/lib/runners/runTemplate.js +6 -0
- package/lib/runners/runTemplate.js.map +1 -1
- package/lib/types/configs.d.ts +40 -0
- package/lib/types/configs.d.ts.map +1 -0
- package/lib/types/configs.js +2 -0
- package/lib/types/configs.js.map +1 -0
- package/lib/types/templates.d.ts +29 -10
- package/lib/types/templates.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from "vitest";
|
|
2
|
+
import { createTemplate } from "../../creators/createTemplate.js";
|
|
3
|
+
import { templateMismatchError } from "./templateMismatchError.js";
|
|
4
|
+
const templateAnonymousA = createTemplate({
|
|
5
|
+
produce: vi.fn(),
|
|
6
|
+
});
|
|
7
|
+
const templateAnonymousB = createTemplate({
|
|
8
|
+
produce: vi.fn(),
|
|
9
|
+
});
|
|
10
|
+
const templateNamedA = createTemplate({
|
|
11
|
+
about: { name: "A" },
|
|
12
|
+
produce: vi.fn(),
|
|
13
|
+
});
|
|
14
|
+
const templateNamedB = createTemplate({
|
|
15
|
+
about: { name: "B" },
|
|
16
|
+
produce: vi.fn(),
|
|
17
|
+
});
|
|
18
|
+
describe("templateMismatchError", () => {
|
|
19
|
+
it("returns a fully named error when both templates have names", () => {
|
|
20
|
+
const actual = templateMismatchError(templateNamedA, templateNamedB);
|
|
21
|
+
expect(actual).toEqual(new Error(`Config file template A is not the same as running template B.`));
|
|
22
|
+
});
|
|
23
|
+
it("returns a fully anonymous error when both templates are anonymous", () => {
|
|
24
|
+
const actual = templateMismatchError(templateAnonymousA, templateAnonymousB);
|
|
25
|
+
expect(actual).toEqual(new Error(`Config file and running template are mismatched and do not have identifying names.`));
|
|
26
|
+
});
|
|
27
|
+
it("returns a mixed error when the config template is anonymous and the running template is named", () => {
|
|
28
|
+
const actual = templateMismatchError(templateAnonymousA, templateNamedB);
|
|
29
|
+
expect(actual).toEqual(new Error(`Config file template (anonymous) is not the same as running template B.`));
|
|
30
|
+
});
|
|
31
|
+
it("returns a mixed error when the config template is named and the running template is anonymous", () => {
|
|
32
|
+
const actual = templateMismatchError(templateNamedA, templateAnonymousB);
|
|
33
|
+
expect(actual).toEqual(new Error(`Config file template A is not the same as running template (anonymous).`));
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=templateMismatchError.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateMismatchError.test.js","sourceRoot":"","sources":["../../../src/cli/transition/templateMismatchError.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,kBAAkB,GAAG,cAAc,CAAC;IACzC,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,cAAc,CAAC;IACzC,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,cAAc,CAAC;IACrC,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;IACpB,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,cAAc,CAAC;IACrC,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;IACpB,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE;CAChB,CAAC,CAAC;AAEH,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACtC,EAAE,CAAC,4DAA4D,EAAE,GAAG,EAAE;QACrE,MAAM,MAAM,GAAG,qBAAqB,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;QAErE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CACrB,IAAI,KAAK,CACR,+DAA+D,CAC/D,CACD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mEAAmE,EAAE,GAAG,EAAE;QAC5E,MAAM,MAAM,GAAG,qBAAqB,CACnC,kBAAkB,EAClB,kBAAkB,CAClB,CAAC;QAEF,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CACrB,IAAI,KAAK,CACR,oFAAoF,CACpF,CACD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+FAA+F,EAAE,GAAG,EAAE;QACxG,MAAM,MAAM,GAAG,qBAAqB,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;QAEzE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CACrB,IAAI,KAAK,CACR,yEAAyE,CACzE,CACD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+FAA+F,EAAE,GAAG,EAAE;QACxG,MAAM,MAAM,GAAG,qBAAqB,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;QAEzE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CACrB,IAAI,KAAK,CACR,yEAAyE,CACzE,CACD,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function tryImportConfig(configFile: string): Promise<Error | import("../
|
|
1
|
+
export declare function tryImportConfig(configFile: string): Promise<Error | import("../index.js").TemplateConfig<import("zod").ZodRawShape, unknown>>;
|
|
2
2
|
//# sourceMappingURL=tryImportConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tryImportConfig.d.ts","sourceRoot":"","sources":["../../src/config/tryImportConfig.ts"],"names":[],"mappings":"AAGA,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"tryImportConfig.d.ts","sourceRoot":"","sources":["../../src/config/tryImportConfig.ts"],"names":[],"mappings":"AAGA,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,6FAOvD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tryImportWithPredicate } from "../cli/tryImportWithPredicate.js";
|
|
2
|
-
import {
|
|
2
|
+
import { isTemplateConfig } from "../predicates/isTemplateConfig.js";
|
|
3
3
|
export async function tryImportConfig(configFile) {
|
|
4
|
-
return await tryImportWithPredicate(async (moduleName) => (await import(moduleName)), configFile,
|
|
4
|
+
return await tryImportWithPredicate(async (moduleName) => (await import(moduleName)), configFile, isTemplateConfig, "config from createConfig()");
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=tryImportConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tryImportConfig.js","sourceRoot":"","sources":["../../src/config/tryImportConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tryImportConfig.js","sourceRoot":"","sources":["../../src/config/tryImportConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,UAAkB;IACvD,OAAO,MAAM,sBAAsB,CAClC,KAAK,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,UAAU,CAAC,CAAW,EAC1D,UAAU,EACV,gBAAgB,EAChB,4BAA4B,CAC5B,CAAC;AACH,CAAC"}
|
|
@@ -6,6 +6,6 @@ import { Template, TemplateDefinition } from "../types/templates.js";
|
|
|
6
6
|
* @see {@link TemplateDefinition}
|
|
7
7
|
* @see {@link https://create.bingo/build/apis/create-template}
|
|
8
8
|
*/
|
|
9
|
-
export declare function createTemplate<OptionsShape extends AnyShape>(definition: TemplateDefinition<OptionsShape>): Template<OptionsShape>;
|
|
10
|
-
export declare function createTemplate(definition: TemplateDefinition<{}>): Template<{}>;
|
|
9
|
+
export declare function createTemplate<OptionsShape extends AnyShape, Refinements>(definition: TemplateDefinition<OptionsShape, Refinements>): Template<OptionsShape, Refinements>;
|
|
10
|
+
export declare function createTemplate<Customizations>(definition: TemplateDefinition<{}, Customizations>): Template<{}, Customizations>;
|
|
11
11
|
//# sourceMappingURL=createTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTemplate.d.ts","sourceRoot":"","sources":["../../src/creators/createTemplate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAErE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,YAAY,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"file":"createTemplate.d.ts","sourceRoot":"","sources":["../../src/creators/createTemplate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAErE;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,YAAY,SAAS,QAAQ,EAAE,WAAW,EACxE,UAAU,EAAE,kBAAkB,CAAC,YAAY,EAAE,WAAW,CAAC,GACvD,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AACvC,wBAAgB,cAAc,CAAC,cAAc,EAC5C,UAAU,EAAE,kBAAkB,CAAC,EAAE,EAAE,cAAc,CAAC,GAChD,QAAQ,CAAC,EAAE,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTemplate.js","sourceRoot":"","sources":["../../src/creators/createTemplate.ts"],"names":[],"mappings":"AAiBA,MAAM,UAAU,cAAc,CAC7B,
|
|
1
|
+
{"version":3,"file":"createTemplate.js","sourceRoot":"","sources":["../../src/creators/createTemplate.ts"],"names":[],"mappings":"AAiBA,MAAM,UAAU,cAAc,CAC7B,UAAyD;IAEzD,MAAM,QAAQ,GAAwC;QACrD,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,QAAQ,EAAE,CAAC;QACnD,OAAO,EAAE,EAAkB;QAC3B,GAAG,UAAU;KACb,CAAC;IAEF,OAAO,QAAQ,CAAC;AACjB,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./mergers/mergeCreations.js";
|
|
|
13
13
|
export * from "./runners/applyFilesToSystem.js";
|
|
14
14
|
export * from "./utils/awaitLazyProperties.js";
|
|
15
15
|
export type * from "./types/about.js";
|
|
16
|
+
export type * from "./types/configs.js";
|
|
16
17
|
export type * from "./types/creations.js";
|
|
17
18
|
export type * from "./types/inputs.js";
|
|
18
19
|
export type * from "./types/modes.js";
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAG7C,cAAc,iCAAiC,CAAC;AAGhD,cAAc,gCAAgC,CAAC;AAG/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAG/C,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAG7C,cAAc,iCAAiC,CAAC;AAGhD,cAAc,gCAAgC,CAAC;AAG/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAG/C,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,sBAAsB,CAAC"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
options?: InferredObject<OptionsShape>;
|
|
5
|
-
settings?: Settings;
|
|
6
|
-
template: Template<OptionsShape>;
|
|
7
|
-
}
|
|
8
|
-
export declare function isCreatedConfig(value: unknown): value is CreatedConfig;
|
|
1
|
+
import { TemplateConfig } from "../types/configs.js";
|
|
2
|
+
import { AnyShape } from "../types/shapes.js";
|
|
3
|
+
export declare function isCreatedConfig(value: unknown): value is TemplateConfig<AnyShape, unknown>;
|
|
9
4
|
//# sourceMappingURL=isCreatedConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isCreatedConfig.d.ts","sourceRoot":"","sources":["../../src/predicates/isCreatedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"isCreatedConfig.d.ts","sourceRoot":"","sources":["../../src/predicates/isCreatedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAkB,MAAM,oBAAoB,CAAC;AAI9D,wBAAgB,eAAe,CAC9B,KAAK,EAAE,OAAO,GACZ,KAAK,IAAI,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,CAO5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isCreatedConfig.js","sourceRoot":"","sources":["../../src/predicates/isCreatedConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isCreatedConfig.js","sourceRoot":"","sources":["../../src/predicates/isCreatedConfig.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,UAAU,eAAe,CAC9B,KAAc;IAEd,OAAO,CACN,CAAC,CAAC,KAAK;QACP,OAAO,KAAK,KAAK,QAAQ;QACzB,UAAU,IAAI,KAAK;QACnB,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAC1B,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, test, vi } from "vitest";
|
|
2
2
|
import { createTemplate } from "../creators/createTemplate.js";
|
|
3
|
-
import { isCreatedConfig } from "./
|
|
3
|
+
import { isCreatedConfig } from "./isTemplateConfig.js";
|
|
4
4
|
const template = createTemplate({
|
|
5
5
|
about: { name: "Test Template" },
|
|
6
6
|
options: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isCreatedConfig.test.js","sourceRoot":"","sources":["../../src/predicates/isCreatedConfig.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isCreatedConfig.test.js","sourceRoot":"","sources":["../../src/predicates/isCreatedConfig.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC/B,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;IAChC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE;CAChB,CAAC,CAAC;AAEH,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAChC,IAAI,CAAC,IAAI,CAAC;QACT,CAAC,IAAI,EAAE,KAAK,CAAC;QACb,CAAC,SAAS,EAAE,KAAK,CAAC;QAClB,CAAC,GAAG,EAAE,KAAK,CAAC;QACZ,CAAC,KAAK,EAAE,KAAK,CAAC;QACd,CAAC,EAAE,EAAE,KAAK,CAAC;QACX,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,KAAK,CAAC;QAC3B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QACzB,CAAC,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QACpD,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,KAAK,CAAC;QAC3B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QACzB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QACvC,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;QACpB,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;QACpB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;QACjC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;QAClC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;KAC/C,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;QAC5B,MAAM,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QAEtC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyShape } from "../types/shapes.js";
|
|
1
2
|
import { Template } from "../types/templates.js";
|
|
2
|
-
export declare function isTemplate(value: unknown): value is Template
|
|
3
|
+
export declare function isTemplate(value: unknown): value is Template<AnyShape, unknown>;
|
|
3
4
|
//# sourceMappingURL=isTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTemplate.d.ts","sourceRoot":"","sources":["../../src/predicates/isTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,wBAAgB,UAAU,
|
|
1
|
+
{"version":3,"file":"isTemplate.d.ts","sourceRoot":"","sources":["../../src/predicates/isTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,wBAAgB,UAAU,CACzB,KAAK,EAAE,OAAO,GACZ,KAAK,IAAI,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAUtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTemplate.js","sourceRoot":"","sources":["../../src/predicates/isTemplate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isTemplate.js","sourceRoot":"","sources":["../../src/predicates/isTemplate.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,UAAU,CACzB,KAAc;IAEd,OAAO,CACN,CAAC,CAAC,KAAK;QACP,OAAO,KAAK,KAAK,QAAQ;QACzB,SAAS,IAAI,KAAK;QAClB,CAAC,CAAC,KAAK,CAAC,OAAO;QACf,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ;QACjC,SAAS,IAAI,KAAK;QAClB,OAAO,KAAK,CAAC,OAAO,KAAK,UAAU,CACnC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isTemplateConfig.d.ts","sourceRoot":"","sources":["../../src/predicates/isTemplateConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,OAAO,GACZ,KAAK,IAAI,cAAc,CAAC,QAAQ,EAAE,OAAO,CAAC,CAO5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isTemplateConfig.js","sourceRoot":"","sources":["../../src/predicates/isTemplateConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,UAAU,gBAAgB,CAC/B,KAAc;IAEd,OAAO,CACN,CAAC,CAAC,KAAK;QACP,OAAO,KAAK,KAAK,QAAQ;QACzB,UAAU,IAAI,KAAK;QACnB,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAC1B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isTemplateConfig.test.d.ts","sourceRoot":"","sources":["../../src/predicates/isTemplateConfig.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { describe, expect, test, vi } from "vitest";
|
|
2
|
+
import { createTemplate } from "../creators/createTemplate.js";
|
|
3
|
+
import { isTemplateConfig } from "./isTemplateConfig.js";
|
|
4
|
+
const template = createTemplate({
|
|
5
|
+
about: { name: "Test Template" },
|
|
6
|
+
options: {},
|
|
7
|
+
produce: vi.fn(),
|
|
8
|
+
});
|
|
9
|
+
describe("isTemplateConfig", () => {
|
|
10
|
+
test.each([
|
|
11
|
+
[null, false],
|
|
12
|
+
[undefined, false],
|
|
13
|
+
[123, false],
|
|
14
|
+
["abc", false],
|
|
15
|
+
[{}, false],
|
|
16
|
+
[{ template: null }, false],
|
|
17
|
+
[{ template: {} }, false],
|
|
18
|
+
[{ refinements: { options: {} }, template: {} }, false],
|
|
19
|
+
[{ refinements: null }, false],
|
|
20
|
+
[{ refinements: {} }, false],
|
|
21
|
+
[{ refinements: {}, template: {} }, false],
|
|
22
|
+
[{ template }, true],
|
|
23
|
+
[{ template }, true],
|
|
24
|
+
[{ options: {}, template }, true],
|
|
25
|
+
[{ refinements: {}, template }, true],
|
|
26
|
+
[{ options: {}, refinements: {}, template }, true],
|
|
27
|
+
])("%j", (input, expected) => {
|
|
28
|
+
const actual = isTemplateConfig(input);
|
|
29
|
+
expect(actual).toBe(expected);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=isTemplateConfig.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isTemplateConfig.test.js","sourceRoot":"","sources":["../../src/predicates/isTemplateConfig.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC/B,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;IAChC,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE,CAAC,EAAE,EAAE;CAChB,CAAC,CAAC;AAEH,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IACjC,IAAI,CAAC,IAAI,CAAC;QACT,CAAC,IAAI,EAAE,KAAK,CAAC;QACb,CAAC,SAAS,EAAE,KAAK,CAAC;QAClB,CAAC,GAAG,EAAE,KAAK,CAAC;QACZ,CAAC,KAAK,EAAE,KAAK,CAAC;QACd,CAAC,EAAE,EAAE,KAAK,CAAC;QACX,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,KAAK,CAAC;QAC3B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QACzB,CAAC,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QACvD,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,KAAK,CAAC;QAC9B,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QAC5B,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QAC1C,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;QACpB,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;QACpB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;QACjC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;QACrC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;KAClD,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;QAC5B,MAAM,MAAM,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAEvC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -3,14 +3,36 @@ import { Creation } from "../types/creations.js";
|
|
|
3
3
|
import { ProductionMode } from "../types/modes.js";
|
|
4
4
|
import { AnyShape, InferredObject } from "../types/shapes.js";
|
|
5
5
|
import { Template } from "../types/templates.js";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Settings to run a template with {@link produceTemplate}.
|
|
8
|
+
* @template OptionsShape Schemas of options the template takes in.
|
|
9
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
10
|
+
* @see {@link https://www.create.bingo/build/apis/produce-template#settings}
|
|
11
|
+
*/
|
|
12
|
+
export interface ProduceTemplateSettings<OptionsShape extends AnyShape, Refinements> extends Partial<BingoSystem> {
|
|
13
|
+
/**
|
|
14
|
+
* Which repository mode Bingo is being run in.
|
|
15
|
+
* @see {@link https://create.bingo/build/concepts/modes}
|
|
16
|
+
*/
|
|
7
17
|
mode?: ProductionMode;
|
|
18
|
+
/**
|
|
19
|
+
* Whether to run in an "offline" mode that skips network requests.
|
|
20
|
+
*/
|
|
8
21
|
offline?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Options values as described by the template's options schema.
|
|
24
|
+
*/
|
|
9
25
|
options: InferredObject<OptionsShape>;
|
|
26
|
+
/**
|
|
27
|
+
* Any optional template-specific customizations.
|
|
28
|
+
*/
|
|
29
|
+
refinements?: Refinements;
|
|
10
30
|
}
|
|
11
31
|
/**
|
|
12
32
|
* Runs a Template's produce(), along with a mode-specific producer if specified.
|
|
33
|
+
* @template OptionsShape Schemas of options the template takes in.
|
|
34
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
13
35
|
* @see {@link http://create.bingo/build/apis/produce-template}
|
|
14
36
|
*/
|
|
15
|
-
export declare function produceTemplate<OptionsShape extends AnyShape>(template: Template<OptionsShape>, settings: ProduceTemplateSettings<OptionsShape>): Promise<Partial<Creation>>;
|
|
37
|
+
export declare function produceTemplate<OptionsShape extends AnyShape, Refinements>(template: Template<OptionsShape, Refinements>, settings: ProduceTemplateSettings<OptionsShape, Refinements>): Promise<Partial<Creation>>;
|
|
16
38
|
//# sourceMappingURL=produceTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"produceTemplate.d.ts","sourceRoot":"","sources":["../../src/producers/produceTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,MAAM,WAAW,uBAAuB,
|
|
1
|
+
{"version":3,"file":"produceTemplate.d.ts","sourceRoot":"","sources":["../../src/producers/produceTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB,CACvC,YAAY,SAAS,QAAQ,EAC7B,WAAW,CACV,SAAQ,OAAO,CAAC,WAAW,CAAC;IAC7B;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAEtC;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACpC,YAAY,SAAS,QAAQ,EAC7B,WAAW,EAEX,QAAQ,EAAE,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,EAC7C,QAAQ,EAAE,uBAAuB,CAAC,YAAY,EAAE,WAAW,CAAC,GAC1D,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAe5B"}
|
|
@@ -2,6 +2,8 @@ import { createSystemContext } from "../contexts/createSystemContext.js";
|
|
|
2
2
|
import { mergeCreations } from "../mergers/mergeCreations.js";
|
|
3
3
|
/**
|
|
4
4
|
* Runs a Template's produce(), along with a mode-specific producer if specified.
|
|
5
|
+
* @template OptionsShape Schemas of options the template takes in.
|
|
6
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
5
7
|
* @see {@link http://create.bingo/build/apis/produce-template}
|
|
6
8
|
*/
|
|
7
9
|
export async function produceTemplate(template, settings) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"produceTemplate.js","sourceRoot":"","sources":["../../src/producers/produceTemplate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"produceTemplate.js","sourceRoot":"","sources":["../../src/producers/produceTemplate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAsC9D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAIpC,QAA6C,EAC7C,QAA4D;IAE5D,MAAM,MAAM,GAAG,mBAAmB,CAAC;QAClC,SAAS,EAAE,GAAG;QACd,GAAG,QAAQ;KACX,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,EAAE,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE,CAAC;IAC3C,IAAI,QAAQ,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3D,IAAI,SAAS,EAAE,CAAC;QACf,QAAQ,GAAG,cAAc,CAAC,QAAQ,EAAE,MAAM,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC"}
|
|
@@ -3,15 +3,40 @@ import { Creation } from "../types/creations.js";
|
|
|
3
3
|
import { ProductionMode } from "../types/modes.js";
|
|
4
4
|
import { AnyShape, InferredObject } from "../types/shapes.js";
|
|
5
5
|
import { Template } from "../types/templates.js";
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Settings to run a template with {@link runTemplate}.
|
|
8
|
+
* @template OptionsShape Schemas of options the template takes in.
|
|
9
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
10
|
+
* @see {@link https://www.create.bingo/build/apis/run-template#settings}
|
|
11
|
+
*/
|
|
12
|
+
export interface RunTemplateSettings<OptionsShape extends AnyShape, Refinements> extends Partial<BingoSystem> {
|
|
13
|
+
/**
|
|
14
|
+
* Current working directory ("cwd") path to use for the file system and running scripts.
|
|
15
|
+
*/
|
|
8
16
|
directory?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Which repository mode Bingo is being run in.
|
|
19
|
+
* @see {@link https://create.bingo/build/concepts/modes}
|
|
20
|
+
*/
|
|
9
21
|
mode?: ProductionMode;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to run in an "offline" mode that skips network requests.
|
|
24
|
+
*/
|
|
10
25
|
offline?: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Options values as described by the template's options schema.
|
|
28
|
+
*/
|
|
14
29
|
options: InferredObject<OptionsShape>;
|
|
30
|
+
/**
|
|
31
|
+
* Any optional customizations from a template-specific config file.
|
|
32
|
+
*/
|
|
33
|
+
refinements?: Refinements;
|
|
15
34
|
}
|
|
16
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Generates and applies Creation output for a template.
|
|
37
|
+
* @template OptionsShape Schemas of options the template takes in.
|
|
38
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
39
|
+
* @see {@link https://www.create.bingo/build/apis/run-template}
|
|
40
|
+
*/
|
|
41
|
+
export declare function runTemplate<OptionsShape extends AnyShape, Refinements>(template: Template<OptionsShape, Refinements>, settings: RunTemplateSettings<OptionsShape, Refinements>): Promise<Partial<Creation>>;
|
|
17
42
|
//# sourceMappingURL=runTemplate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runTemplate.d.ts","sourceRoot":"","sources":["../../src/runners/runTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"runTemplate.d.ts","sourceRoot":"","sources":["../../src/runners/runTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB,CAAC,YAAY,SAAS,QAAQ,EAAE,WAAW,CAC9E,SAAQ,OAAO,CAAC,WAAW,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAEtC;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC1B;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,YAAY,SAAS,QAAQ,EAAE,WAAW,EAC3E,QAAQ,EAAE,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,EAC7C,QAAQ,EAAE,mBAAmB,CAAC,YAAY,EAAE,WAAW,CAAC,GACtD,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAc5B"}
|
|
@@ -2,6 +2,12 @@ import fs from "node:fs/promises";
|
|
|
2
2
|
import { createSystemContextWithAuth } from "../contexts/createSystemContextWithAuth.js";
|
|
3
3
|
import { produceTemplate } from "../producers/produceTemplate.js";
|
|
4
4
|
import { runCreation } from "./runCreation.js";
|
|
5
|
+
/**
|
|
6
|
+
* Generates and applies Creation output for a template.
|
|
7
|
+
* @template OptionsShape Schemas of options the template takes in.
|
|
8
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
9
|
+
* @see {@link https://www.create.bingo/build/apis/run-template}
|
|
10
|
+
*/
|
|
5
11
|
export async function runTemplate(template, settings) {
|
|
6
12
|
const { directory = ".", offline } = settings;
|
|
7
13
|
await fs.mkdir(directory, { recursive: true });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runTemplate.js","sourceRoot":"","sources":["../../src/runners/runTemplate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAElC,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKlE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"runTemplate.js","sourceRoot":"","sources":["../../src/runners/runTemplate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAElC,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKlE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAqC/C;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAChC,QAA6C,EAC7C,QAAwD;IAExD,MAAM,EAAE,SAAS,GAAG,GAAG,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC;IAC9C,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAE/C,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAC;QAChD,SAAS;QACT,GAAG,QAAQ;KACX,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,eAAe,CAAC,QAAQ,EAAE,EAAE,GAAG,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;IAE7E,MAAM,WAAW,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;IAEjD,OAAO,QAAQ,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AnyShape, InferredObject } from "./shapes.js";
|
|
2
|
+
import { Template } from "./templates.js";
|
|
3
|
+
/**
|
|
4
|
+
* Configuration object to be default-exported from a config file.
|
|
5
|
+
* @template OptionsShape Schemas of options the template takes in.
|
|
6
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
7
|
+
* @see {@link https://www.create.bingo/configuration}
|
|
8
|
+
*/
|
|
9
|
+
export interface TemplateConfig<OptionsShape extends AnyShape, Refinements> {
|
|
10
|
+
/**
|
|
11
|
+
* Any overrides for options values as described by the template's options schema.
|
|
12
|
+
*/
|
|
13
|
+
options?: Partial<InferredObject<OptionsShape>>;
|
|
14
|
+
/**
|
|
15
|
+
* Any optional customizations from a template-specific config file.
|
|
16
|
+
*/
|
|
17
|
+
refinements?: Refinements;
|
|
18
|
+
/**
|
|
19
|
+
* The base template associated with this configuration.
|
|
20
|
+
*/
|
|
21
|
+
template: Template<OptionsShape, Refinements>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Settings to pass to a `createConfig()` function.
|
|
25
|
+
* @template Options Options values as described by the template's options schema.
|
|
26
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
27
|
+
* @see {@link https://www.create.bingo/configuration#createconfig}
|
|
28
|
+
*/
|
|
29
|
+
export interface TemplateCreateConfigSettings<Options extends object, Refinements> {
|
|
30
|
+
options?: Partial<Options>;
|
|
31
|
+
refinements?: Refinements;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Creates a configuration object to be default-exported from a config file.
|
|
35
|
+
* @template OptionsShape Schemas of options the template takes in.
|
|
36
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
37
|
+
* @see {@link https://www.create.bingo/configuration#createconfig}
|
|
38
|
+
*/
|
|
39
|
+
export type CreateTemplateConfig<OptionsShape extends AnyShape, Refinements> = (settings?: TemplateCreateConfigSettings<InferredObject<OptionsShape>, Refinements>) => TemplateConfig<OptionsShape, Refinements>;
|
|
40
|
+
//# sourceMappingURL=configs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../src/types/configs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,WAAW,cAAc,CAAC,YAAY,SAAS,QAAQ,EAAE,WAAW;IACzE;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;IAEhD;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;CAC9C;AAED;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B,CAC5C,OAAO,SAAS,MAAM,EACtB,WAAW;IAEX,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC1B;AAED;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,CAAC,YAAY,SAAS,QAAQ,EAAE,WAAW,IAAI,CAC9E,QAAQ,CAAC,EAAE,4BAA4B,CACtC,cAAc,CAAC,YAAY,CAAC,EAC5B,WAAW,CACX,KACG,cAAc,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configs.js","sourceRoot":"","sources":["../../src/types/configs.ts"],"names":[],"mappings":""}
|
package/lib/types/templates.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CreatedDirectory } from "bingo-fs";
|
|
2
2
|
import { AboutBase } from "./about.js";
|
|
3
|
+
import { CreateTemplateConfig } from "./configs.js";
|
|
3
4
|
import { Creation } from "./creations.js";
|
|
4
5
|
import { TakeInput } from "./inputs.js";
|
|
5
6
|
import { LazyOptionalOptions } from "./options.js";
|
|
@@ -28,9 +29,15 @@ export interface RepositoryLocator {
|
|
|
28
29
|
/**
|
|
29
30
|
* Description of how to setup or transition a repository given a set of options.
|
|
30
31
|
* @template OptionsShape Schemas of options the template takes in.
|
|
32
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
31
33
|
* @see {@link https://create.bingo/build/concepts/templates}
|
|
32
34
|
*/
|
|
33
|
-
export interface Template<OptionsShape extends AnyShape
|
|
35
|
+
export interface Template<OptionsShape extends AnyShape, Refinements> extends TemplateDefinition<OptionsShape, Refinements> {
|
|
36
|
+
/**
|
|
37
|
+
* Creates a configuration object to be default-exported from a config file.
|
|
38
|
+
* @see {@link https://www.create.bingo/configuration#createconfig}
|
|
39
|
+
*/
|
|
40
|
+
createConfig: CreateTemplateConfig<OptionsShape, Refinements>;
|
|
34
41
|
/**
|
|
35
42
|
* Schemas of options the template takes in.
|
|
36
43
|
*/
|
|
@@ -48,20 +55,26 @@ export interface TemplateAbout extends AboutBase {
|
|
|
48
55
|
/**
|
|
49
56
|
* Context provided to template producers.
|
|
50
57
|
* @template Options Options values as described by the template's options schema.
|
|
58
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
51
59
|
* @see {@link http://create.bingo/build/details/contexts#template-contexts}
|
|
52
60
|
*/
|
|
53
|
-
export interface TemplateContext<Options extends object> {
|
|
61
|
+
export interface TemplateContext<Options extends object, Refinements> {
|
|
54
62
|
/**
|
|
55
63
|
* Options values as described by the template's options schema.
|
|
56
64
|
*/
|
|
57
65
|
options: Options;
|
|
66
|
+
/**
|
|
67
|
+
* Any optional customizations from a template-specific config file.
|
|
68
|
+
*/
|
|
69
|
+
refinements?: Partial<Refinements>;
|
|
58
70
|
}
|
|
59
71
|
/**
|
|
60
72
|
* Definition for creating a new Template.
|
|
61
73
|
* @template OptionsShape Schemas of options the template takes in.
|
|
74
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
62
75
|
* @see {@link https://www.create.bingo/build/apis/create-template}
|
|
63
76
|
*/
|
|
64
|
-
export interface TemplateDefinition<OptionsShape extends AnyShape
|
|
77
|
+
export interface TemplateDefinition<OptionsShape extends AnyShape, Refinements> {
|
|
65
78
|
/**
|
|
66
79
|
* About information for the template, including an optional repository locator.
|
|
67
80
|
* @see {@link https://www.create.bingo/build/apis/create-template#about}
|
|
@@ -76,35 +89,39 @@ export interface TemplateDefinition<OptionsShape extends AnyShape = AnyShape> {
|
|
|
76
89
|
* Sets up lazily load default options values.
|
|
77
90
|
* @see {@link https://www.create.bingo/build/apis/create-template#prepare}
|
|
78
91
|
*/
|
|
79
|
-
prepare?: TemplatePrepare<InferredObject<OptionsShape
|
|
92
|
+
prepare?: TemplatePrepare<InferredObject<OptionsShape>, Refinements>;
|
|
80
93
|
/**
|
|
81
94
|
* Generates the creations describing a repository made from the template.
|
|
82
95
|
* @see {@link https://www.create.bingo/build/apis/create-template#produce}
|
|
83
96
|
*/
|
|
84
|
-
produce: TemplateProduce<InferredObject<OptionsShape
|
|
97
|
+
produce: TemplateProduce<InferredObject<OptionsShape>, Refinements>;
|
|
85
98
|
/**
|
|
86
99
|
* Additional production function for initializing a new repository with the template.
|
|
87
100
|
* @see {@link https://www.create.bingo/build/apis/create-template#setup}
|
|
88
101
|
*/
|
|
89
|
-
setup?: TemplateProduce<InferredObject<OptionsShape
|
|
102
|
+
setup?: TemplateProduce<InferredObject<OptionsShape>, Refinements>;
|
|
90
103
|
/**
|
|
91
104
|
* Additional production function for migrating an existing repository to the template.
|
|
92
105
|
* @see {@link https://www.create.bingo/build/apis/create-template#transition}
|
|
93
106
|
*/
|
|
94
|
-
transition?: TemplateProduce<InferredObject<OptionsShape
|
|
107
|
+
transition?: TemplateProduce<InferredObject<OptionsShape>, Refinements>;
|
|
95
108
|
}
|
|
96
109
|
/**
|
|
97
110
|
* Sets up lazily loaded default options values.
|
|
98
111
|
* @param context Shared helper functions and information.
|
|
112
|
+
* @template Options Options values as described by the template's options schema.
|
|
113
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
99
114
|
* @see {@link https://www.create.bingo/build/apis/create-template#prepare}
|
|
100
115
|
*/
|
|
101
|
-
export type TemplatePrepare<Options extends object> = (context: TemplatePrepareContext<Partial<Options
|
|
116
|
+
export type TemplatePrepare<Options extends object, Refinements> = (context: TemplatePrepareContext<Partial<Options>, Refinements>) => LazyOptionalOptions<Partial<Options>>;
|
|
102
117
|
/**
|
|
103
118
|
* Shared helper functions and information passed to template options preparers.
|
|
104
119
|
* @param context Shared helper functions and information.
|
|
120
|
+
* @template Options Options values as described by the template's options schema.
|
|
121
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
105
122
|
* @see {@link https://www.create.bingo/build/details/contexts#options-contexts}
|
|
106
123
|
*/
|
|
107
|
-
export interface TemplatePrepareContext<Options extends object> extends TemplateContext<Options> {
|
|
124
|
+
export interface TemplatePrepareContext<Options extends object, Refinements> extends TemplateContext<Options, Refinements> {
|
|
108
125
|
/**
|
|
109
126
|
* Logs a message to the running user.
|
|
110
127
|
*/
|
|
@@ -121,7 +138,9 @@ export interface TemplatePrepareContext<Options extends object> extends Template
|
|
|
121
138
|
/**
|
|
122
139
|
* Generates the creations describing a repository made from the template.
|
|
123
140
|
* @param context Shared helper functions and information.
|
|
141
|
+
* @template Options Options values as described by the template's options schema.
|
|
142
|
+
* @template Refinements Any optional customizations from a template-specific config file.
|
|
124
143
|
* @see {@link https://www.create.bingo/build/apis/create-template#produce}
|
|
125
144
|
*/
|
|
126
|
-
export type TemplateProduce<Options extends object> = (context: TemplateContext<Options>) => PromiseOrSync<Partial<Creation>>;
|
|
145
|
+
export type TemplateProduce<Options extends object, Refinements> = (context: TemplateContext<Options, Refinements>) => PromiseOrSync<Partial<Creation>>;
|
|
127
146
|
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/types/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACnB;AAED
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/types/templates.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bingo",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Delightful templates for web repositories. 💝",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"slugify": "^1.6.6",
|
|
36
36
|
"without-undefined-properties": "^0.1.1",
|
|
37
37
|
"zod": "^3.24.2",
|
|
38
|
-
"bingo-systems": "^0.5.
|
|
39
|
-
"bingo-fs": "^0.5.
|
|
38
|
+
"bingo-systems": "^0.5.3",
|
|
39
|
+
"bingo-fs": "^0.5.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/hosted-git-info": "3.0.5",
|