@quincarter/create-lit-app 1.0.11 → 1.0.13
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 +12 -3
- package/package.json +1 -1
package/create-app-shell.sh
CHANGED
|
@@ -90,7 +90,7 @@ parse_args() {
|
|
|
90
90
|
--install) RUN_INSTALL=true ;;
|
|
91
91
|
--no-install) RUN_INSTALL=false ;;
|
|
92
92
|
-v|--version)
|
|
93
|
-
echo "@quincarter/create-lit-app v1.0.
|
|
93
|
+
echo "@quincarter/create-lit-app v1.0.12"
|
|
94
94
|
exit 0
|
|
95
95
|
;;
|
|
96
96
|
--help|-h)
|
|
@@ -98,10 +98,10 @@ parse_args() {
|
|
|
98
98
|
echo -e "${BLUE}Scaffold modular Lit Element applications with signals, context, routing, and UI suites.${RESET}\n"
|
|
99
99
|
|
|
100
100
|
echo -e "${BOLD}${YELLOW}USAGE:${RESET}"
|
|
101
|
-
echo -e " ${GREEN}npx @quincarter/create-lit-app${RESET} [options]\n"
|
|
101
|
+
echo -e " ${GREEN}npx @quincarter/create-lit-app${RESET} [app-name] [options]\n"
|
|
102
102
|
|
|
103
103
|
echo -e "${BOLD}${YELLOW}PROJECT CONFIGURATION:${RESET}"
|
|
104
|
-
printf " ${CYAN}%-32s${RESET} %s\n" "--name=<name>" "Project directory / package name"
|
|
104
|
+
printf " ${CYAN}%-32s${RESET} %s\n" "[app-name], --name=<name>" "Project directory / package name"
|
|
105
105
|
printf " ${CYAN}%-32s${RESET} %s\n" "--template=<type>" "Starter template: full | blank | custom (default: full)"
|
|
106
106
|
printf " ${CYAN}%-32s${RESET} %s\n" "--pm=<yarn|npm>" "Package manager to use (default: yarn)"
|
|
107
107
|
echo ""
|
|
@@ -130,6 +130,13 @@ parse_args() {
|
|
|
130
130
|
echo ""
|
|
131
131
|
exit 0
|
|
132
132
|
;;
|
|
133
|
+
-*)
|
|
134
|
+
;;
|
|
135
|
+
*)
|
|
136
|
+
if [ -z "$APP_NAME" ]; then
|
|
137
|
+
APP_NAME="$arg"
|
|
138
|
+
fi
|
|
139
|
+
;;
|
|
133
140
|
esac
|
|
134
141
|
done
|
|
135
142
|
}
|
|
@@ -140,6 +147,8 @@ prompt_user() {
|
|
|
140
147
|
if [ -z "$APP_NAME" ]; then
|
|
141
148
|
read -rp "Enter app name (default: my-app-shell): " input_name
|
|
142
149
|
APP_NAME=${input_name:-my-app-shell}
|
|
150
|
+
else
|
|
151
|
+
echo -e "Creating app: ${BOLD}${CYAN}$APP_NAME${RESET}\n"
|
|
143
152
|
fi
|
|
144
153
|
|
|
145
154
|
echo -e "\nChoose starter template preset:"
|