feat(cli): add alchemy and improve cli tooling and structure (#520)

This commit is contained in:
Aman Varshney
2025-08-20 23:43:58 +05:30
committed by GitHub
parent c5430ae4fd
commit 5788876c47
152 changed files with 5804 additions and 2264 deletions

View File

@@ -346,16 +346,49 @@ export const TECH_OPTIONS: Record<
],
webDeploy: [
{
id: "workers",
name: "Cloudflare Workers",
description: "Deploy to Cloudflare Workers",
id: "wrangler",
name: "Wrangler",
description: "Deploy to Cloudflare Workers using Wrangler",
icon: `${ICON_BASE_URL}/workers.svg`,
color: "from-orange-400 to-orange-600",
},
{
id: "alchemy",
name: "Alchemy",
description: "Deploy to Cloudflare Workers using Alchemy",
icon: `${ICON_BASE_URL}/alchemy.png`,
color: "from-purple-400 to-purple-600",
className: "scale-150"
},
{
id: "none",
name: "No Deployment",
description: "Skip deployment configuration",
name: "None",
description: "Skip deployment setup",
icon: "",
color: "from-gray-400 to-gray-600",
default: true,
},
],
serverDeploy: [
{
id: "wrangler",
name: "Wrangler",
description: "Deploy to Cloudflare Workers using Wrangler",
icon: `${ICON_BASE_URL}/workers.svg`,
color: "from-orange-400 to-orange-600",
},
{
id: "alchemy",
name: "Alchemy",
description: "Deploy to Cloudflare Workers using Alchemy",
icon: `${ICON_BASE_URL}/alchemy.png`,
color: "from-purple-400 to-purple-600",
className: "scale-150"
},
{
id: "none",
name: "None",
description: "Skip deployment setup",
icon: "",
color: "from-gray-400 to-gray-600",
default: true,
@@ -670,6 +703,7 @@ export type StackState = {
install: string;
api: string;
webDeploy: string;
serverDeploy: string;
};
export const DEFAULT_STACK: StackState = {
@@ -689,6 +723,7 @@ export const DEFAULT_STACK: StackState = {
install: "true",
api: "trpc",
webDeploy: "none",
serverDeploy: "none",
};
export const isStackDefault = <K extends keyof StackState>(

View File

@@ -54,6 +54,9 @@ export const stackParsers = {
webDeploy: parseAsStringEnum<StackState["webDeploy"]>(
getValidIds("webDeploy"),
).withDefault(DEFAULT_STACK.webDeploy),
serverDeploy: parseAsStringEnum<StackState["serverDeploy"]>(
getValidIds("serverDeploy"),
).withDefault(DEFAULT_STACK.serverDeploy),
};
export const stackUrlKeys: UrlKeys<typeof stackParsers> = {
@@ -73,6 +76,7 @@ export const stackUrlKeys: UrlKeys<typeof stackParsers> = {
git: "git",
install: "i",
webDeploy: "wd",
serverDeploy: "sd",
};
export const stackQueryStatesOptions = {

View File

@@ -8,6 +8,7 @@ export type TechCategory =
| "orm"
| "dbSetup"
| "webDeploy"
| "serverDeploy"
| "auth"
| "packageManager"
| "addons"