create-better-fullstack 1.1.14 → 1.1.16
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/dist/cli.mjs +1 -1
- package/dist/index.d.mts +29 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-CB8JndVq.mjs → src-DDAojCKV.mjs} +28 -9
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -396,6 +396,29 @@ declare const router: {
|
|
|
396
396
|
none: "none";
|
|
397
397
|
ruff: "ruff";
|
|
398
398
|
}>>;
|
|
399
|
+
goWebFramework: z.ZodOptional<z.ZodEnum<{
|
|
400
|
+
none: "none";
|
|
401
|
+
gin: "gin";
|
|
402
|
+
echo: "echo";
|
|
403
|
+
}>>;
|
|
404
|
+
goOrm: z.ZodOptional<z.ZodEnum<{
|
|
405
|
+
none: "none";
|
|
406
|
+
gorm: "gorm";
|
|
407
|
+
sqlc: "sqlc";
|
|
408
|
+
}>>;
|
|
409
|
+
goApi: z.ZodOptional<z.ZodEnum<{
|
|
410
|
+
none: "none";
|
|
411
|
+
"grpc-go": "grpc-go";
|
|
412
|
+
}>>;
|
|
413
|
+
goCli: z.ZodOptional<z.ZodEnum<{
|
|
414
|
+
none: "none";
|
|
415
|
+
cobra: "cobra";
|
|
416
|
+
bubbletea: "bubbletea";
|
|
417
|
+
}>>;
|
|
418
|
+
goLogging: z.ZodOptional<z.ZodEnum<{
|
|
419
|
+
none: "none";
|
|
420
|
+
zap: "zap";
|
|
421
|
+
}>>;
|
|
399
422
|
}, z.core.$strip>], null>, _orpc_server0.Schema<{
|
|
400
423
|
success: boolean;
|
|
401
424
|
projectConfig: {
|
|
@@ -635,6 +658,11 @@ type Ecosystem = import__better_fullstack_types.Ecosystem;
|
|
|
635
658
|
type Effect = import__better_fullstack_types.Effect;
|
|
636
659
|
type Examples = import__better_fullstack_types.Examples;
|
|
637
660
|
type Frontend = import__better_fullstack_types.Frontend;
|
|
661
|
+
type GoApi = import__better_fullstack_types.GoApi;
|
|
662
|
+
type GoCli = import__better_fullstack_types.GoCli;
|
|
663
|
+
type GoLogging = import__better_fullstack_types.GoLogging;
|
|
664
|
+
type GoOrm = import__better_fullstack_types.GoOrm;
|
|
665
|
+
type GoWebFramework = import__better_fullstack_types.GoWebFramework;
|
|
638
666
|
type InitResult = import__better_fullstack_types.InitResult;
|
|
639
667
|
type Logging = import__better_fullstack_types.Logging;
|
|
640
668
|
type ORM = import__better_fullstack_types.ORM;
|
|
@@ -658,4 +686,4 @@ type ServerDeploy = import__better_fullstack_types.ServerDeploy;
|
|
|
658
686
|
type Template = import__better_fullstack_types.Template;
|
|
659
687
|
type UILibrary = import__better_fullstack_types.UILibrary;
|
|
660
688
|
type WebDeploy = import__better_fullstack_types.WebDeploy;
|
|
661
|
-
export { type API, type Addons, type Analytics, type Animation, type Auth, type Backend, type BetterTStackConfig, type CMS, type CSSFramework, type Caching, type CreateInput, type Database, type DatabaseSetup, type DirectoryConflict, EMBEDDED_TEMPLATES, type Ecosystem, type Effect, type Examples, type Frontend, type GeneratorOptions, type GeneratorResult, type InitResult, type Logging, type ORM, type PackageManager, type Payments, type PythonAi, type PythonOrm, type PythonQuality, type PythonTaskQueue, type PythonValidation, type PythonWebFramework, type Realtime, type Runtime, type RustApi, type RustCli, type RustFrontend, type RustLibraries, type RustOrm, type RustWebFramework, type ServerDeploy, TEMPLATE_COUNT, type Template, type UILibrary, type VirtualDirectory, type VirtualFile, VirtualFileSystem, type VirtualFileTree, type VirtualNode, type WebDeploy, builder, create, createBtsCli, createVirtual, docs, generateVirtualProject, router, sponsors };
|
|
689
|
+
export { type API, type Addons, type Analytics, type Animation, type Auth, type Backend, type BetterTStackConfig, type CMS, type CSSFramework, type Caching, type CreateInput, type Database, type DatabaseSetup, type DirectoryConflict, EMBEDDED_TEMPLATES, type Ecosystem, type Effect, type Examples, type Frontend, type GeneratorOptions, type GeneratorResult, type GoApi, type GoCli, type GoLogging, type GoOrm, type GoWebFramework, type InitResult, type Logging, type ORM, type PackageManager, type Payments, type PythonAi, type PythonOrm, type PythonQuality, type PythonTaskQueue, type PythonValidation, type PythonWebFramework, type Realtime, type Runtime, type RustApi, type RustCli, type RustFrontend, type RustLibraries, type RustOrm, type RustWebFramework, type ServerDeploy, TEMPLATE_COUNT, type Template, type UILibrary, type VirtualDirectory, type VirtualFile, VirtualFileSystem, type VirtualFileTree, type VirtualNode, type WebDeploy, builder, create, createBtsCli, createVirtual, docs, generateVirtualProject, router, sponsors };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as create, c as docs, d as sponsors, i as builder, l as generateVirtualProject, n as TEMPLATE_COUNT, o as createBtsCli, r as VirtualFileSystem, s as createVirtual, t as EMBEDDED_TEMPLATES, u as router } from "./src-
|
|
2
|
+
import { a as create, c as docs, d as sponsors, i as builder, l as generateVirtualProject, n as TEMPLATE_COUNT, o as createBtsCli, r as VirtualFileSystem, s as createVirtual, t as EMBEDDED_TEMPLATES, u as router } from "./src-DDAojCKV.mjs";
|
|
3
3
|
|
|
4
4
|
export { EMBEDDED_TEMPLATES, TEMPLATE_COUNT, VirtualFileSystem, builder, create, createBtsCli, createVirtual, docs, generateVirtualProject, router, sponsors };
|
|
@@ -1020,15 +1020,23 @@ function validateUILibraryFrontendCompatibility(uiLibrary, frontends = [], astro
|
|
|
1020
1020
|
const compatibility = UI_LIBRARY_COMPATIBILITY[uiLibrary];
|
|
1021
1021
|
const webFrontend = web[0];
|
|
1022
1022
|
if (webFrontend === "astro") {
|
|
1023
|
+
const supportsReact = compatibility.frontends.some((f) => [
|
|
1024
|
+
"tanstack-router",
|
|
1025
|
+
"react-router",
|
|
1026
|
+
"tanstack-start",
|
|
1027
|
+
"next"
|
|
1028
|
+
].includes(f));
|
|
1029
|
+
const supportsNonReact = compatibility.frontends.some((f) => [
|
|
1030
|
+
"nuxt",
|
|
1031
|
+
"svelte",
|
|
1032
|
+
"solid",
|
|
1033
|
+
"qwik",
|
|
1034
|
+
"angular"
|
|
1035
|
+
].includes(f));
|
|
1023
1036
|
if (astroIntegration === "react") {
|
|
1024
|
-
if (
|
|
1025
|
-
"tanstack-router",
|
|
1026
|
-
"react-router",
|
|
1027
|
-
"tanstack-start",
|
|
1028
|
-
"next"
|
|
1029
|
-
].includes(f))) return;
|
|
1037
|
+
if (supportsReact) return;
|
|
1030
1038
|
}
|
|
1031
|
-
if (!
|
|
1039
|
+
if (!supportsNonReact) {
|
|
1032
1040
|
const integrationName = astroIntegration || "none";
|
|
1033
1041
|
incompatibilityError({
|
|
1034
1042
|
message: `UI library '${uiLibrary}' requires React.`,
|
|
@@ -1077,7 +1085,13 @@ function getCompatibleUILibraries(frontends = [], astroIntegration) {
|
|
|
1077
1085
|
"next",
|
|
1078
1086
|
"astro"
|
|
1079
1087
|
].includes(f));
|
|
1080
|
-
return compatibility.frontends.
|
|
1088
|
+
return compatibility.frontends.some((f) => [
|
|
1089
|
+
"nuxt",
|
|
1090
|
+
"svelte",
|
|
1091
|
+
"solid",
|
|
1092
|
+
"qwik",
|
|
1093
|
+
"angular"
|
|
1094
|
+
].includes(f));
|
|
1081
1095
|
}
|
|
1082
1096
|
return compatibility.frontends.includes(webFrontend);
|
|
1083
1097
|
});
|
|
@@ -7659,7 +7673,12 @@ const router = os.router({
|
|
|
7659
7673
|
pythonValidation: types_exports.PythonValidationSchema.optional().describe("Python validation (pydantic)"),
|
|
7660
7674
|
pythonAi: z.array(types_exports.PythonAiSchema).optional().describe("Python AI/ML frameworks"),
|
|
7661
7675
|
pythonTaskQueue: types_exports.PythonTaskQueueSchema.optional().describe("Python task queue (celery)"),
|
|
7662
|
-
pythonQuality: types_exports.PythonQualitySchema.optional().describe("Python code quality (ruff)")
|
|
7676
|
+
pythonQuality: types_exports.PythonQualitySchema.optional().describe("Python code quality (ruff)"),
|
|
7677
|
+
goWebFramework: types_exports.GoWebFrameworkSchema.optional().describe("Go web framework (gin, echo)"),
|
|
7678
|
+
goOrm: types_exports.GoOrmSchema.optional().describe("Go ORM/database (gorm, sqlc)"),
|
|
7679
|
+
goApi: types_exports.GoApiSchema.optional().describe("Go API layer (grpc-go)"),
|
|
7680
|
+
goCli: types_exports.GoCliSchema.optional().describe("Go CLI tools (cobra, bubbletea)"),
|
|
7681
|
+
goLogging: types_exports.GoLoggingSchema.optional().describe("Go logging (zap)")
|
|
7663
7682
|
})])).handler(async ({ input }) => {
|
|
7664
7683
|
const [projectName, options] = input;
|
|
7665
7684
|
const result = await createProjectHandler({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-fullstack",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"description": "A CLI-first toolkit for building Full Stack applications. Skip the configuration. Ship the code.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"better-auth",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"prepublishOnly": "npm run build"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@better-fullstack/template-generator": "^1.1.
|
|
80
|
-
"@better-fullstack/types": "^1.1.
|
|
79
|
+
"@better-fullstack/template-generator": "^1.1.16",
|
|
80
|
+
"@better-fullstack/types": "^1.1.16",
|
|
81
81
|
"@clack/core": "^0.5.0",
|
|
82
82
|
"@clack/prompts": "^1.0.0-alpha.8",
|
|
83
83
|
"@orpc/server": "^1.13.0",
|