@quincarter/create-lit-app 1.0.5 → 1.0.7
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/create-app-shell.sh +18 -1
- package/package.json +1 -1
package/create-app-shell.sh
CHANGED
|
@@ -1733,9 +1733,26 @@ fi
|
|
|
1733
1733
|
|
|
1734
1734
|
log_title "App Shell Scaffolding Complete!"
|
|
1735
1735
|
echo -e "${GREEN}Project successfully created at:${RESET} ${BOLD}$TARGET_DIR${RESET}\n"
|
|
1736
|
+
|
|
1737
|
+
START_CMD="$PACKAGE_MANAGER start"
|
|
1738
|
+
|
|
1739
|
+
if [ "$NON_INTERACTIVE" = false ]; then
|
|
1740
|
+
read -rp "Would you like to cd into '$APP_NAME' and run '$START_CMD' now? (y/N): " AUTO_START
|
|
1741
|
+
if [[ "$AUTO_START" =~ ^[Yy]$ ]]; then
|
|
1742
|
+
echo -e "\n${CYAN}Directory changed to:${RESET} ${BOLD}$TARGET_DIR${RESET}"
|
|
1743
|
+
echo -e "${CYAN}Launching dev server with:${RESET} ${BOLD}$START_CMD${RESET}\n"
|
|
1744
|
+
cd "$TARGET_DIR" || exit 1
|
|
1745
|
+
if [ "$RUN_INSTALL" = false ]; then
|
|
1746
|
+
log_info "Installing dependencies first..."
|
|
1747
|
+
$PACKAGE_MANAGER install
|
|
1748
|
+
fi
|
|
1749
|
+
exec $PACKAGE_MANAGER start
|
|
1750
|
+
fi
|
|
1751
|
+
fi
|
|
1752
|
+
|
|
1736
1753
|
echo -e "Next steps:"
|
|
1737
1754
|
echo -e " cd ${BOLD}$APP_NAME${RESET}"
|
|
1738
1755
|
if [ "$RUN_INSTALL" = false ]; then
|
|
1739
1756
|
echo -e " ${BOLD}$PACKAGE_MANAGER install${RESET}"
|
|
1740
1757
|
fi
|
|
1741
|
-
echo -e " ${BOLD}$
|
|
1758
|
+
echo -e " ${BOLD}$START_CMD${RESET}\n"
|