create-better-fullstack 1.3.1 → 1.3.3
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 +5 -0
- package/dist/index.mjs +1 -1
- package/dist/{src-ZMYs861W.mjs → src-BsG0rAVT.mjs} +50 -2
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -186,6 +186,11 @@ declare const router: {
|
|
|
186
186
|
none: "none";
|
|
187
187
|
"upstash-redis": "upstash-redis";
|
|
188
188
|
}>>;
|
|
189
|
+
search: z.ZodOptional<z.ZodEnum<{
|
|
190
|
+
none: "none";
|
|
191
|
+
meilisearch: "meilisearch";
|
|
192
|
+
typesense: "typesense";
|
|
193
|
+
}>>;
|
|
189
194
|
fileStorage: z.ZodOptional<z.ZodEnum<{
|
|
190
195
|
none: "none";
|
|
191
196
|
s3: "s3";
|
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-BsG0rAVT.mjs";
|
|
3
3
|
|
|
4
4
|
export { EMBEDDED_TEMPLATES, TEMPLATE_COUNT, VirtualFileSystem, builder, create, createBtsCli, createVirtual, docs, generateVirtualProject, router, sponsors };
|
|
@@ -4153,7 +4153,23 @@ function displayConfig(config) {
|
|
|
4153
4153
|
if (config.orm !== void 0) configDisplay.push(`${pc.blue("ORM:")} ${String(config.orm)}`);
|
|
4154
4154
|
if (config.auth !== void 0) configDisplay.push(`${pc.blue("Auth:")} ${String(config.auth)}`);
|
|
4155
4155
|
if (config.payments !== void 0) configDisplay.push(`${pc.blue("Payments:")} ${String(config.payments)}`);
|
|
4156
|
+
if (config.email !== void 0) configDisplay.push(`${pc.blue("Email:")} ${String(config.email)}`);
|
|
4157
|
+
if (config.fileUpload !== void 0) configDisplay.push(`${pc.blue("File Upload:")} ${String(config.fileUpload)}`);
|
|
4156
4158
|
if (config.effect !== void 0) configDisplay.push(`${pc.blue("Effect:")} ${String(config.effect)}`);
|
|
4159
|
+
if (config.ai !== void 0) configDisplay.push(`${pc.blue("AI:")} ${String(config.ai)}`);
|
|
4160
|
+
if (config.stateManagement !== void 0) configDisplay.push(`${pc.blue("State Management:")} ${String(config.stateManagement)}`);
|
|
4161
|
+
if (config.forms !== void 0) configDisplay.push(`${pc.blue("Forms:")} ${String(config.forms)}`);
|
|
4162
|
+
if (config.validation !== void 0) configDisplay.push(`${pc.blue("Validation:")} ${String(config.validation)}`);
|
|
4163
|
+
if (config.testing !== void 0) configDisplay.push(`${pc.blue("Testing:")} ${String(config.testing)}`);
|
|
4164
|
+
if (config.animation !== void 0) configDisplay.push(`${pc.blue("Animation:")} ${String(config.animation)}`);
|
|
4165
|
+
if (config.realtime !== void 0) configDisplay.push(`${pc.blue("Realtime:")} ${String(config.realtime)}`);
|
|
4166
|
+
if (config.jobQueue !== void 0) configDisplay.push(`${pc.blue("Job Queue:")} ${String(config.jobQueue)}`);
|
|
4167
|
+
if (config.logging !== void 0) configDisplay.push(`${pc.blue("Logging:")} ${String(config.logging)}`);
|
|
4168
|
+
if (config.observability !== void 0) configDisplay.push(`${pc.blue("Observability:")} ${String(config.observability)}`);
|
|
4169
|
+
if (config.caching !== void 0) configDisplay.push(`${pc.blue("Caching:")} ${String(config.caching)}`);
|
|
4170
|
+
if (config.cms !== void 0) configDisplay.push(`${pc.blue("CMS:")} ${String(config.cms)}`);
|
|
4171
|
+
if (config.search !== void 0) configDisplay.push(`${pc.blue("Search:")} ${String(config.search)}`);
|
|
4172
|
+
if (config.fileStorage !== void 0) configDisplay.push(`${pc.blue("File Storage:")} ${String(config.fileStorage)}`);
|
|
4157
4173
|
if (config.addons !== void 0) {
|
|
4158
4174
|
const addons = Array.isArray(config.addons) ? config.addons : [config.addons];
|
|
4159
4175
|
const addonsText = addons.length > 0 && addons[0] !== void 0 ? addons.join(", ") : "none";
|
|
@@ -4193,9 +4209,25 @@ function generateReproducibleCommand(config) {
|
|
|
4193
4209
|
flags.push(`--api ${config.api}`);
|
|
4194
4210
|
flags.push(`--auth ${config.auth}`);
|
|
4195
4211
|
flags.push(`--payments ${config.payments}`);
|
|
4212
|
+
flags.push(`--email ${config.email}`);
|
|
4213
|
+
flags.push(`--file-upload ${config.fileUpload}`);
|
|
4196
4214
|
flags.push(`--effect ${config.effect}`);
|
|
4197
4215
|
flags.push(`--css-framework ${config.cssFramework}`);
|
|
4198
4216
|
flags.push(`--ui-library ${config.uiLibrary}`);
|
|
4217
|
+
flags.push(`--ai ${config.ai}`);
|
|
4218
|
+
flags.push(`--state-management ${config.stateManagement}`);
|
|
4219
|
+
flags.push(`--forms ${config.forms}`);
|
|
4220
|
+
flags.push(`--validation ${config.validation}`);
|
|
4221
|
+
flags.push(`--testing ${config.testing}`);
|
|
4222
|
+
flags.push(`--animation ${config.animation}`);
|
|
4223
|
+
flags.push(`--realtime ${config.realtime}`);
|
|
4224
|
+
flags.push(`--job-queue ${config.jobQueue}`);
|
|
4225
|
+
flags.push(`--logging ${config.logging}`);
|
|
4226
|
+
flags.push(`--observability ${config.observability}`);
|
|
4227
|
+
flags.push(`--caching ${config.caching}`);
|
|
4228
|
+
flags.push(`--cms ${config.cms}`);
|
|
4229
|
+
flags.push(`--search ${config.search}`);
|
|
4230
|
+
flags.push(`--file-storage ${config.fileStorage}`);
|
|
4199
4231
|
if (config.addons && config.addons.length > 0) flags.push(`--addons ${config.addons.join(" ")}`);
|
|
4200
4232
|
else flags.push("--addons none");
|
|
4201
4233
|
if (config.examples && config.examples.length > 0) flags.push(`--examples ${config.examples.join(" ")}`);
|
|
@@ -6986,8 +7018,16 @@ async function setupDatabase(config, cliInput) {
|
|
|
6986
7018
|
//#region src/helpers/core/git.ts
|
|
6987
7019
|
async function initializeGit(projectDir, useGit) {
|
|
6988
7020
|
if (!useGit) return;
|
|
7021
|
+
const gitEnv = { ...process.env };
|
|
7022
|
+
delete gitEnv.GIT_DIR;
|
|
7023
|
+
delete gitEnv.GIT_WORK_TREE;
|
|
7024
|
+
delete gitEnv.GIT_INDEX_FILE;
|
|
7025
|
+
delete gitEnv.GIT_OBJECT_DIRECTORY;
|
|
7026
|
+
delete gitEnv.GIT_ALTERNATE_OBJECT_DIRECTORIES;
|
|
7027
|
+
delete gitEnv.GIT_COMMON_DIR;
|
|
6989
7028
|
if ((await $({
|
|
6990
7029
|
cwd: projectDir,
|
|
7030
|
+
env: gitEnv,
|
|
6991
7031
|
reject: false,
|
|
6992
7032
|
stderr: "pipe"
|
|
6993
7033
|
})`git --version`).exitCode !== 0) {
|
|
@@ -6996,12 +7036,19 @@ async function initializeGit(projectDir, useGit) {
|
|
|
6996
7036
|
}
|
|
6997
7037
|
const result = await $({
|
|
6998
7038
|
cwd: projectDir,
|
|
7039
|
+
env: gitEnv,
|
|
6999
7040
|
reject: false,
|
|
7000
7041
|
stderr: "pipe"
|
|
7001
7042
|
})`git init`;
|
|
7002
7043
|
if (result.exitCode !== 0) throw new Error(`Git initialization failed: ${result.stderr}`);
|
|
7003
|
-
await $({
|
|
7004
|
-
|
|
7044
|
+
await $({
|
|
7045
|
+
cwd: projectDir,
|
|
7046
|
+
env: gitEnv
|
|
7047
|
+
})`git add -A`;
|
|
7048
|
+
await $({
|
|
7049
|
+
cwd: projectDir,
|
|
7050
|
+
env: gitEnv
|
|
7051
|
+
})`git commit --no-verify -m ${"initial commit"}`;
|
|
7005
7052
|
}
|
|
7006
7053
|
|
|
7007
7054
|
//#endregion
|
|
@@ -7812,6 +7859,7 @@ const router = os.router({
|
|
|
7812
7859
|
analytics: types_exports.AnalyticsSchema.optional().describe("Privacy-focused analytics"),
|
|
7813
7860
|
cms: types_exports.CMSSchema.optional().describe("Headless CMS solution"),
|
|
7814
7861
|
caching: types_exports.CachingSchema.optional().describe("Caching solution"),
|
|
7862
|
+
search: types_exports.SearchSchema.optional().describe("Search engine solution"),
|
|
7815
7863
|
fileStorage: types_exports.FileStorageSchema.optional().describe("File storage solution (S3, R2)"),
|
|
7816
7864
|
frontend: z.array(types_exports.FrontendSchema).optional(),
|
|
7817
7865
|
astroIntegration: types_exports.AstroIntegrationSchema.optional().describe("Astro UI framework integration (react, vue, svelte, solid)"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-fullstack",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
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.3.
|
|
80
|
-
"@better-fullstack/types": "^1.3.
|
|
79
|
+
"@better-fullstack/template-generator": "^1.3.3",
|
|
80
|
+
"@better-fullstack/types": "^1.3.3",
|
|
81
81
|
"@clack/core": "^0.5.0",
|
|
82
82
|
"@clack/prompts": "^1.0.0-alpha.8",
|
|
83
83
|
"@orpc/server": "^1.13.0",
|