mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Added support for building mobile applications with Expo
This commit is contained in:
@@ -10,6 +10,7 @@ import type {
|
||||
ProjectAddons,
|
||||
ProjectConfig,
|
||||
ProjectExamples,
|
||||
ProjectFrontend,
|
||||
Runtime,
|
||||
} from "./types";
|
||||
import { displayConfig } from "./utils/display-config";
|
||||
@@ -59,6 +60,10 @@ async function main() {
|
||||
.option("--hono", "Use Hono backend framework")
|
||||
.option("--elysia", "Use Elysia backend framework")
|
||||
.option("--runtime <runtime>", "Specify runtime (bun or node)")
|
||||
.option("--web", "Include web frontend")
|
||||
.option("--native", "Include Expo frontend")
|
||||
.option("--no-web", "Exclude web frontend")
|
||||
.option("--no-native", "Exclude Expo frontend")
|
||||
.parse();
|
||||
|
||||
const s = spinner();
|
||||
@@ -115,6 +120,16 @@ async function main() {
|
||||
.filter((e) => e === "todo") as ProjectExamples[])
|
||||
: [],
|
||||
}),
|
||||
...((options.web !== undefined || options.native !== undefined) && {
|
||||
frontend: [
|
||||
...(options.web === false ? [] : options.web === true ? ["web"] : []),
|
||||
...(options.native === false
|
||||
? []
|
||||
: options.native === true
|
||||
? ["native"]
|
||||
: []),
|
||||
] as ProjectFrontend[],
|
||||
}),
|
||||
};
|
||||
|
||||
if (!options.yes && Object.keys(flagConfig).length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user