Skip to content

Commit 6fa23e4

Browse files
committed
add tailwind option to bootstrapper
1 parent 342d3c1 commit 6fa23e4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bootstrap.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ main() {
6565
exit 1
6666
fi
6767
read -p "Enter a project name: " PROJECT_NAME </dev/tty
68+
read -n 1 -p "Would you like to use tailwind? (y/n) " TAILWIND_CHOICE </dev/tty
69+
echo
6870
else
6971
read -p "Enter a project name: " PROJECT_NAME
72+
read -n 1 -p "Would you like to use tailwind? (y/n) " TAILWIND_CHOICE
73+
echo
7074
fi
7175
# Prompt the user for the project name interactively
7276
if [ -z "$PROJECT_NAME" ]; then
@@ -92,6 +96,9 @@ main() {
9296
exit 1
9397
fi
9498

99+
if [[ "$TAILWIND_CHOICE" == "y" ]] || [[ "$TAILWIND_CHOICE" == "Y" ]]; then
100+
ZIP_NAME="template-tailwind.zip"
101+
fi
95102
# Download and extract the framework
96103
download_framework
97104

0 commit comments

Comments
 (0)