diff --git a/apps/web/public/schema.json b/apps/web/public/schema.json index 9d7d2e7..898d990 100644 --- a/apps/web/public/schema.json +++ b/apps/web/public/schema.json @@ -1,144 +1,175 @@ { - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://better-t-stack.dev/schema.json", - "title": "Better-T-Stack Configuration", - "description": "Configuration file for Better-T-Stack projects", - "type": "object", - "properties": { - "$schema": { - "type": "string", - "description": "JSON Schema reference for validation" - }, - "version": { - "type": "string", - "description": "CLI version used to create this project", - "pattern": "^\\d+\\.\\d+\\.\\d+$" - }, - "createdAt": { - "type": "string", - "format": "date-time", - "description": "Timestamp when the project was created" - }, - "database": { - "type": "string", - "enum": ["none", "sqlite", "postgres", "mysql", "mongodb"], - "description": "Database type" - }, - "orm": { - "type": "string", - "enum": ["drizzle", "prisma", "mongoose", "none"], - "description": "ORM type" - }, - "backend": { - "type": "string", - "enum": [ - "hono", - "express", - "fastify", - "next", - "elysia", - "convex", - "none" - ], - "description": "Backend framework" - }, - "runtime": { - "type": "string", - "enum": ["bun", "node", "workers", "none"], - "description": "Runtime environment (workers only available with hono backend and drizzle orm)" - }, - "frontend": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "tanstack-router", - "react-router", - "tanstack-start", - "next", - "nuxt", - "native-nativewind", - "native-unistyles", - "svelte", - "solid", - "none" - ] - }, - "description": "Frontend framework" - }, - "addons": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "pwa", - "tauri", - "starlight", - "biome", - "husky", - "turborepo", - "none" - ] - }, - "description": "Additional addons" - }, - "examples": { - "type": "array", - "items": { - "type": "string", - "enum": ["todo", "ai", "none"] - }, - "description": "Example templates to include" - }, - "auth": { - "type": "boolean", - "description": "Whether authentication is enabled" - }, - "packageManager": { - "type": "string", - "enum": ["npm", "pnpm", "bun"], - "description": "Package manager" - }, - "dbSetup": { - "type": "string", - "enum": [ - "turso", - "neon", - "prisma-postgres", - "mongodb-atlas", - "supabase", - "d1", - "docker", - "none" - ], - "description": "Database hosting setup" - }, - "api": { - "type": "string", - "enum": ["trpc", "orpc", "none"], - "description": "API type" - }, - "webDeploy": { - "type": "string", - "enum": ["workers", "none"], - "description": "Web deployment" - } - }, - "required": [ - "version", - "createdAt", - "database", - "orm", - "backend", - "runtime", - "frontend", - "addons", - "examples", - "auth", - "packageManager", - "dbSetup", - "api", - "webDeploy" - ], - "additionalProperties": false -} + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://better-t-stack.dev/schema.json", + "title": "Better-T-Stack Configuration", + "description": "Configuration file for Better-T-Stack projects", + "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "JSON Schema reference for validation" + }, + "version": { + "type": "string", + "description": "CLI version used to create this project", + "pattern": "^\\d+\\.\\d+\\.\\d+$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "Timestamp when the project was created" + }, + "database": { + "type": "string", + "enum": [ + "none", + "sqlite", + "postgres", + "mysql", + "mongodb" + ], + "description": "Database type" + }, + "orm": { + "type": "string", + "enum": [ + "drizzle", + "prisma", + "mongoose", + "none" + ], + "description": "ORM type" + }, + "backend": { + "type": "string", + "enum": [ + "hono", + "express", + "fastify", + "next", + "elysia", + "convex", + "none" + ], + "description": "Backend framework" + }, + "runtime": { + "type": "string", + "enum": [ + "bun", + "node", + "workers", + "none" + ], + "description": "Runtime environment (workers only available with hono backend and drizzle orm)" + }, + "frontend": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "tanstack-router", + "react-router", + "tanstack-start", + "next", + "nuxt", + "native-nativewind", + "native-unistyles", + "svelte", + "solid", + "none" + ] + }, + "description": "Frontend framework" + }, + "addons": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pwa", + "tauri", + "starlight", + "biome", + "husky", + "turborepo", + "none" + ] + }, + "description": "Additional addons" + }, + "examples": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "todo", + "ai", + "none" + ] + }, + "description": "Example templates to include" + }, + "auth": { + "type": "boolean", + "description": "Whether authentication is enabled" + }, + "packageManager": { + "type": "string", + "enum": [ + "npm", + "pnpm", + "bun" + ], + "description": "Package manager" + }, + "dbSetup": { + "type": "string", + "enum": [ + "turso", + "neon", + "prisma-postgres", + "mongodb-atlas", + "supabase", + "d1", + "docker", + "none" + ], + "description": "Database hosting setup" + }, + "api": { + "type": "string", + "enum": [ + "trpc", + "orpc", + "none" + ], + "description": "API type" + }, + "webDeploy": { + "type": "string", + "enum": [ + "workers", + "none" + ], + "description": "Web deployment" + } + }, + "required": [ + "version", + "createdAt", + "database", + "orm", + "backend", + "runtime", + "frontend", + "addons", + "examples", + "auth", + "packageManager", + "dbSetup", + "api", + "webDeploy" + ], + "additionalProperties": false +} \ No newline at end of file diff --git a/biome.json b/biome.json index 111a3d6..81d2397 100644 --- a/biome.json +++ b/biome.json @@ -16,7 +16,8 @@ "!**/templates/**", "!**/.turbo", "!**/package.json", - "!**/analytics-data.json" + "!**/analytics-data.json", + "!**/schema.json" ] }, "formatter": { diff --git a/bun.lock b/bun.lock index 44f9ab9..4bc832a 100644 --- a/bun.lock +++ b/bun.lock @@ -14,7 +14,7 @@ }, "apps/cli": { "name": "create-better-t-stack", - "version": "2.24.4", + "version": "2.24.5", "bin": { "create-better-t-stack": "dist/index.js", },