Skip to content

Commit

Permalink
fix: simplify: remove UI question and use shadcn as default
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusschiesser committed Mar 28, 2024
1 parent ae15367 commit 922e0ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-trains-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-llama": patch
---

Remove UI question (use shadcn as default). Use `html` UI by calling create-llama with --ui html parameter
24 changes: 3 additions & 21 deletions questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if ($dialogResult -eq [System.Windows.Forms.DialogResult]::OK)
const defaults: QuestionArgs = {
template: "streaming",
framework: "nextjs",
ui: "html",
ui: "shadcn",
frontend: false,
openAiKey: "",
llamaCloudKey: "",
Expand Down Expand Up @@ -501,25 +501,7 @@ export const askQuestions = async (

if (program.framework === "nextjs" || program.frontend) {
if (!program.ui) {
if (ciInfo.isCI) {
program.ui = getPrefOrDefault("ui");
} else {
const { ui } = await prompts(
{
type: "select",
name: "ui",
message: "Which UI would you like to use?",
choices: [
{ title: "Just HTML", value: "html" },
{ title: "Shadcn", value: "shadcn" },
],
initial: 0,
},
handlers,
);
program.ui = ui;
preferences.ui = ui;
}
program.ui = getPrefOrDefault("ui");
}
}

Expand Down Expand Up @@ -713,7 +695,7 @@ export const askQuestions = async (
name: "useLlamaParse",
message:
"Would you like to use LlamaParse (improved parser for RAG - requires API key)?",
initial: true,
initial: false,
active: "yes",
inactive: "no",
},
Expand Down

0 comments on commit 922e0ce

Please sign in to comment.