@quincarter/create-lit-app 1.0.5 → 1.0.9

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.
@@ -559,14 +559,25 @@ import type { MfeItem } from "../utilities/mfe-loader.utility";
559
559
 
560
560
  export const MFE_LOADER_CONFIG: MfeItem[] = [
561
561
  {
562
- mfeBundleUrl: "https://quincarter.github.io/my-coffee-app/assets/coffee-users-PQOfY16o.js",
562
+ mfeBundleUrl:
563
+ "https://quincarter.github.io/my-coffee-app/assets/coffee-users-PQOfY16o.js",
563
564
  scriptType: "module",
564
565
  isAsync: false,
565
566
  defer: false,
566
567
  crossOrigin: "anonymous",
567
568
  tagName: "coffee-users",
568
569
  associatedInternalTag: "home-page",
569
- }
570
+ },
571
+ {
572
+ mfeBundleUrl:
573
+ "https://quincarter.github.io/vite-test-my-element-mfe/assets/index-DVYAdQcO.js",
574
+ scriptType: "module",
575
+ isAsync: false,
576
+ defer: false,
577
+ crossOrigin: "anonymous",
578
+ tagName: "my-element",
579
+ associatedInternalTag: "vite-mfe",
580
+ },
570
581
  ];
571
582
  EOF
572
583
 
@@ -1733,9 +1744,26 @@ fi
1733
1744
 
1734
1745
  log_title "App Shell Scaffolding Complete!"
1735
1746
  echo -e "${GREEN}Project successfully created at:${RESET} ${BOLD}$TARGET_DIR${RESET}\n"
1747
+
1748
+ START_CMD="$PACKAGE_MANAGER start"
1749
+
1750
+ if [ "$NON_INTERACTIVE" = false ]; then
1751
+ read -rp "Would you like to cd into '$APP_NAME' and run '$START_CMD' now? (y/N): " AUTO_START
1752
+ if [[ "$AUTO_START" =~ ^[Yy]$ ]]; then
1753
+ echo -e "\n${CYAN}Directory changed to:${RESET} ${BOLD}$TARGET_DIR${RESET}"
1754
+ echo -e "${CYAN}Launching dev server with:${RESET} ${BOLD}$START_CMD${RESET}\n"
1755
+ cd "$TARGET_DIR" || exit 1
1756
+ if [ "$RUN_INSTALL" = false ]; then
1757
+ log_info "Installing dependencies first..."
1758
+ $PACKAGE_MANAGER install
1759
+ fi
1760
+ exec $PACKAGE_MANAGER start
1761
+ fi
1762
+ fi
1763
+
1736
1764
  echo -e "Next steps:"
1737
1765
  echo -e " cd ${BOLD}$APP_NAME${RESET}"
1738
1766
  if [ "$RUN_INSTALL" = false ]; then
1739
1767
  echo -e " ${BOLD}$PACKAGE_MANAGER install${RESET}"
1740
1768
  fi
1741
- echo -e " ${BOLD}$PACKAGE_MANAGER start${RESET}\n"
1769
+ echo -e " ${BOLD}$START_CMD${RESET}\n"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quincarter/create-lit-app",
3
- "version": "1.0.5",
3
+ "version": "1.0.9",
4
4
  "description": "Interactive CLI initializer for Lit Element App Shell architecture",
5
5
  "type": "module",
6
6
  "bin": {