mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): add alchemy and improve cli tooling and structure (#520)
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
ORMSchema,
|
||||
PackageManagerSchema,
|
||||
RuntimeSchema,
|
||||
ServerDeploySchema,
|
||||
WebDeploySchema,
|
||||
} from "../../cli/src/types";
|
||||
|
||||
@@ -27,6 +28,7 @@ const PACKAGE_MANAGER_VALUES = PackageManagerSchema.options;
|
||||
const DATABASE_SETUP_VALUES = DatabaseSetupSchema.options;
|
||||
const API_VALUES = APISchema.options;
|
||||
const WEB_DEPLOY_VALUES = WebDeploySchema.options;
|
||||
const SERVER_DEPLOY_VALUES = ServerDeploySchema.options;
|
||||
|
||||
const configSchema = {
|
||||
$schema: "http://json-schema.org/draft-07/schema#",
|
||||
@@ -117,6 +119,11 @@ const configSchema = {
|
||||
enum: WEB_DEPLOY_VALUES,
|
||||
description: WebDeploySchema.description,
|
||||
},
|
||||
serverDeploy: {
|
||||
type: "string",
|
||||
enum: SERVER_DEPLOY_VALUES,
|
||||
description: ServerDeploySchema.description,
|
||||
},
|
||||
},
|
||||
required: [
|
||||
"version",
|
||||
@@ -133,6 +140,7 @@ const configSchema = {
|
||||
"dbSetup",
|
||||
"api",
|
||||
"webDeploy",
|
||||
"serverDeploy",
|
||||
],
|
||||
additionalProperties: false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user