@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
52 lines • 2.21 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const schema_1 = require("@sprucelabs/schema");
const namedTemplateItem_builder_1 = __importDefault(require("./namedTemplateItem.builder"));
const syncSchemasOptions_builder_1 = __importDefault(require("./syncSchemasOptions.builder"));
exports.default = (0, schema_1.buildSchema)({
id: 'createSchemaOptions',
name: 'Create schema',
description: 'Create the builder to a fresh new schema!',
fields: {
...syncSchemasOptions_builder_1.default.fields,
schemaBuilderDestinationDir: {
type: 'text',
label: 'Schema builder destination directory',
hint: "Where I'll save the new schema builder.",
defaultValue: 'src/schemas',
},
builderFunction: {
type: 'text',
label: 'Builder function',
hint: 'The function that builds this schema',
defaultValue: 'buildSchema',
isPrivate: true,
},
moduleToImportFromWhenRemote: {
type: 'text',
label: 'Source module',
hint: 'If this schema should be imported from a node module vs generated locally.',
},
syncAfterCreate: {
type: 'boolean',
label: 'Sync after creation',
hint: 'This will ensure types and schemas are in sync after you create your builder.',
isPrivate: true,
defaultValue: true,
},
version: {
type: 'text',
label: 'Version',
hint: 'Set a version yourself instead of letting me generate one for you',
isPrivate: true,
},
nameReadable: namedTemplateItem_builder_1.default.fields.nameReadable,
namePascal: namedTemplateItem_builder_1.default.fields.namePascal,
nameCamel: namedTemplateItem_builder_1.default.fields.nameCamel,
description: namedTemplateItem_builder_1.default.fields.description,
},
});
//# sourceMappingURL=createSchemaOptions.builder.js.map