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:
@@ -35,6 +35,20 @@ export function generateReproducibleCommand(config: ProjectConfig): string {
|
||||
flags.push(`--runtime ${config.runtime}`);
|
||||
}
|
||||
|
||||
if (config.frontend) {
|
||||
if (config.frontend.includes("web")) {
|
||||
flags.push("--web");
|
||||
} else {
|
||||
flags.push("--no-web");
|
||||
}
|
||||
|
||||
if (config.frontend.includes("native")) {
|
||||
flags.push("--native");
|
||||
} else {
|
||||
flags.push("--no-native");
|
||||
}
|
||||
}
|
||||
|
||||
if (config.addons.length > 0) {
|
||||
for (const addon of config.addons) {
|
||||
flags.push(`--${addon}`);
|
||||
|
||||
Reference in New Issue
Block a user